Skip to content

Idea of new interfaces which AppiumDriver would implement  #105

@TikhomirovSergey

Description

@TikhomirovSergey

Hi guys!

My point of view
AppiumDriver has a scope of methods like these:

scrollTo(String)
scrollToExact(String)

shake()

swipe(int, int, int, int, int)

performMultiTouchAction(MultiTouchAction)
performTouchAction(TouchAction)

zoom(int, int)
zoom(WebElement)

hideKeyboard()
hideKeyboard(String)
hideKeyboard(String, String)

sendKeyEvent(int)
sendKeyEvent(int, Integer)

etc.

Some methods are universal (work on Android as well as on iOS), some methods work well with Android, some - with iOS only.

For example
Sometimes is useful to make up your own customized components which implement some interfaces and wrap AppiumDriver. It can be more convenient than

((AppiumDriver) driver).hideKeyboard();
((AppiumDriver) driver).shake();

The problem is that there is no interface where these methods are declared and logically grouped. AppiumDriver could be logically divided. But, if somebody add one more optional method, it is difficult to trace this modification at the test automation framework.

It would be nice to have ability of fast synchronization with AppiumDriver in this kind of situations. So I think that additional interfaces which AppiumDriver could implement would be a good enhancement.

What do think about this idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions