Skip to content

Instantly share code, notes, and snippets.

@jharshit91
Last active May 4, 2018 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jharshit91/6a168cbedc14653322fe62f55b22ecff to your computer and use it in GitHub Desktop.
Save jharshit91/6a168cbedc14653322fe62f55b22ecff to your computer and use it in GitHub Desktop.
LoginPage_Eng
package pageObjects;
import io.appium.java_client.MobileElement;
import io.appium.java_client.pagefactory.AndroidFindBy;
import pageInterface.AppLoginInterface;
public class LoginPage_Eng implements AppLoginInterface {
@AndroidFindBy(uiAutomator = "new UiSelector().text(\"Email or username\")")
MobileElement username;
@AndroidFindBy(uiAutomator = "new UiSelector().text(\"Next\")")
MobileElement nextButton;
@AndroidFindBy(id = "org.wordpress.android:id/nux_password")
MobileElement passwordField;
@AndroidFindBy(uiAutomator = "new UiSelector().text(\"Log in\")")
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