daily pastebin goal
16%
SHARE
TWEET

awesome

a guest Sep 1st, 2015 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @PageObject
  2. public class LoginPage {
  3.  
  4.   @Autowired
  5.   private Fixtures fixtures;
  6.  
  7.   @FindBy(id = "username")
  8.   public SendKeys<LoginPage> username;
  9.  
  10.   @FindBy(id = "password")
  11.   public SendKeys<LoginPage> password;
  12.  
  13.   @FindBy(name = "submit")
  14.   public Click<MainNavPage> submitButton;
  15.  
  16.   public MainNavPage loginWithFixtureUser() {
  17.     fixtures.getWebDriver().get("https://qa.trakitgps.com");
  18.     User user = fixtures.getUser();
  19.     return username.sendKeys(user.getUsername()).password.sendKeys(user.getPassword()).submitButton.click();
  20.   }
  21.  
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top