Skip to content

Instantly share code, notes, and snippets.

View leomenezessz's full-sized avatar
🏠
Working from home

Leonardo Menezes leomenezessz

🏠
Working from home
View GitHub Profile
public class CalculatorScreen {
private AppiumDriver<MobileElement> driver;
public CalculatorScreen(AppiumDriver<MobileElement> driver) {
PageFactory.initElements( new AppiumFieldDecorator(driver), this);
this.driver = driver;
}
@AndroidFindBy(id = "android_button_sum")
public class CalculatorScreen {
private AppiumDriver<MobileElement> driver;
public CalculatorScreen(AppiumDriver<MobileElement> driver) {
PageFactory.initElements( new AppiumFieldDecorator(driver), this);
this.driver = driver;
}
}
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
</plugin>
</plugins>
</build>
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>4.1.2</version>
</dependency>