PageRenderTime 71ms CodeModel.GetById 20ms RepoModel.GetById 3ms app.codeStats 0ms

/src/test/java/com/atlassian/jira/plugins/bitbucket/pageobjects/page/GithubLoginPage.java

https://bitbucket.org/atlassian/jira-bitbucket-connector/
Java | 36 lines | 26 code | 7 blank | 3 comment | 0 complexity | b037d7fec29b81534bffd32f50226f55 MD5 | raw file
  1. package com.atlassian.jira.plugins.bitbucket.pageobjects.page;
  2. import com.atlassian.pageobjects.Page;
  3. import com.atlassian.pageobjects.elements.ElementBy;
  4. import com.atlassian.pageobjects.elements.PageElement;
  5. /**
  6. *
  7. */
  8. public class GithubLoginPage implements Page
  9. {
  10. public static final String PAGE_URL = "https://github.com/login";
  11. public static final String LOGOUT_ACTION_URL = "https://github.com/logout";
  12. @ElementBy(id = "login_field")
  13. PageElement githubWebLoginField;
  14. @ElementBy(id = "password")
  15. PageElement githubWebPasswordField;
  16. @ElementBy(name = "commit")
  17. PageElement githubWebSubmitButton;
  18. @Override
  19. public String getUrl()
  20. {
  21. return PAGE_URL;
  22. }
  23. public void doLogin()
  24. {
  25. githubWebLoginField.type("jirabitbucketconnector");
  26. githubWebPasswordField.type("jirabitbucketconnector1");
  27. githubWebSubmitButton.click();
  28. }
  29. }