Skip to content

Conversation

@TikhomirovSergey
Copy link
Contributor

Fixed #185

@FindBy(locator)
MobileElement element;
...


(AndroidElement) element..//if now test of an Android app is being run
//or
(IOSElement) element..//if now test of an iOS app is being run

Also now there is something like... bounding. It means that user is not allowed to declare IOSElement field for Android-specific scripts/pageobjects and AndroidElement field for iOS-specific scripts/pageobjects.

  • Additional change:
    An ability to declare TouchableElement field has been added.
@FindBy(locator)
TouchableElement element;
...

Jonahss added a commit that referenced this pull request Apr 20, 2015
@Jonahss Jonahss merged commit 5583d7e into appium:master Apr 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

how to cast MobileElement to IOSElement

2 participants