Uh oh!
There was an error while loading. Please reload this page.
appium#52 Add @FindBy annotations for appium's extra locator strategies - #68
Conversation
bootstraponline
commented
Jul 23, 2014
Please squash to one commit. |
jlipps
commented
Jul 23, 2014
I think @Jonahss will want to review this and he's on vacation for a few more days--thanks a ton for the work! |
TikhomirovSergey
commented
Jul 24, 2014
Is squashed. |
Jonahss
commented
Jul 28, 2014
Awesome! |
prattpratt
commented
Jul 28, 2014
Cool! Looks great! |
hatti
commented
Sep 1, 2014
Hello! I posted a question to the Annotations into https://discuss.appium.io/t/java-client-1-6-0-findby-annotations-vs-driver-find/88 |
TikhomirovSergey
commented
Sep 1, 2014
email2vimalraj
commented
Apr 13, 2015
I'm bit confused on this implementation. Correct me if I'm doing wrong here: Are these annotations only works for web ui, not for native? |
TikhomirovSergey
commented
Apr 15, 2015
Hi @email2vimalraj @FindBy(id="testid") //id in HTML DOM@AndroidFindBy(id="androidtestid") //id of Android native UI element@iOSFindBy(id="iostestid") //id of iOS native UI elementRemoteWebElementtestElement; //I advice you to use RemoteWebElement for super crossplatform //scripts because of problems with touch actions that are going to be resolvedshould work. Otherwice please open an issue. |
WebElement can be instantiated by these ways:
or
or
Now old browser page objects can be reusable with this decorator:
or
I made some tests. If there is not enough please add your own.