Skip to content

Instantly share code, notes, and snippets.

@jharshit91
Created May 4, 2018 16:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jharshit91/d9ebf86816d8bce439bb634cf16d1a37 to your computer and use it in GitHub Desktop.
LoginPage_FR
package pageObjects;
import pageInterface.AppLoginInterface;
import io.appium.java_client.MobileElement;
import io.appium.java_client.pagefactory.AndroidFindBy;
public class LoginPage_FR implements AppLoginInterface {
@AndroidFindBy(uiAutomator = "new UiSelector().text(\"Adresse e-mail ou identifiant\")")
MobileElement username;
@AndroidFindBy(uiAutomator = "new UiSelector().text(\"Suivant\")")
MobileElement nextButton;
@AndroidFindBy(id = "org.wordpress.android:id/nux_password")
MobileElement passwordField;
@AndroidFindBy(uiAutomator = "new UiSelector().text(\"Se connecter\")")
MobileElement loginButton;
@AndroidFindBy(id = "org.wordpress.android:id/promo_dialog_button_negative")
MobileElement tryNewEditorPopup;
@Override
public MobileElement getUserName() {
return username;
}
@Override
public MobileElement getNextButton() {
return nextButton;
}
@Override
public MobileElement getpasswordField() {
return passwordField;
}
@Override
public MobileElement getLoginButton() {
return loginButton;
}
@Override
public MobileElement getTryNewEditorPopupButton() {
return tryNewEditorPopup;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment