Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using OpenQA.Selenium;
- using OpenQA.Selenium.Support.PageObjects;
- namespace SeaNet.PageObjects
- {
- class LoginPage
- {
- IWebDriver driver;
- [FindsBy(How = How.XPath, Using = "//*[@id='LoginPanel']/form/div[1]/div/input")]
- public IWebElement UserName { get; set; }
- [FindsBy(How = How.Id, Using = "//*[@id='LoginPanel']/form/div[2]/div/input")]
- public IWebElement Password { get; set; }
- [FindsBy(How = How.CssSelector, Using = "button[ng-click='Login();']")]
- public IWebElement Login { get; set; }
- [FindsBy(How = How.CssSelector, Using = "button[ng-click='WindowsLogin();']")]
- public IWebElement CPLogin { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement