Skip to content

Instantly share code, notes, and snippets.

@travisdachi
Last active August 25, 2017 07:42
Show Gist options
  • Save travisdachi/6f29ec71e8d9c598415ded4abb649dfe to your computer and use it in GitHub Desktop.
Save travisdachi/6f29ec71e8d9c598415ded4abb649dfe to your computer and use it in GitHub Desktop.
MainPage for SampleTest
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