Last active
August 25, 2017 07:42
-
-
Save travisdachi/6f29ec71e8d9c598415ded4abb649dfe to your computer and use it in GitHub Desktop.
MainPage for SampleTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainPage(driver: AppiumDriver<WebElement>) { | |
init { | |
PageFactory.initElements(AppiumFieldDecorator(driver), this) | |
} | |
@AndroidFindBy(id = "com.blacklenspub.helloappium:id/tvLabel") | |
@iOSFindBy(xpath = "//XCUIElementTypeStaticText[1]") | |
lateinit var myLabel: WebElement | |
@AndroidFindBy(id = "com.blacklenspub.helloappium:id/btnGreet") | |
@iOSFindBy(xpath = "//XCUIElementTypeButton[1]") | |
lateinit var myButton: WebElement | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment