Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. using OpenQA.Selenium;
  2. using OpenQA.Selenium.Support.PageObjects;
  3.  
  4.  
  5. namespace SeaNet.PageObjects
  6. {
  7. class LoginPage
  8. {
  9.  
  10. IWebDriver driver;
  11.  
  12. [FindsBy(How = How.XPath, Using = "//*[@id='LoginPanel']/form/div[1]/div/input")]
  13. public IWebElement UserName { get; set; }
  14.  
  15. [FindsBy(How = How.Id, Using = "//*[@id='LoginPanel']/form/div[2]/div/input")]
  16. public IWebElement Password { get; set; }
  17.  
  18. [FindsBy(How = How.CssSelector, Using = "button[ng-click='Login();']")]
  19. public IWebElement Login { get; set; }
  20.  
  21. [FindsBy(How = How.CssSelector, Using = "button[ng-click='WindowsLogin();']")]
  22. public IWebElement CPLogin { get; set; }
  23.  
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement