Created
May 4, 2018 16:16
Star
You must be signed in to star a gist
LoginPage_FR
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
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