Last active
May 4, 2018 16:11
-
-
Save jharshit91/6a168cbedc14653322fe62f55b22ecff to your computer and use it in GitHub Desktop.
LoginPage_Eng
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 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