Guest User

Untitled

a guest
Dec 21st, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. By username= By.xpath("//input[@id='UEID' and @name='login']");
  2. By password= By.xpath("//input[@class='inputtext' and @name='password']");
  3. By Lbutton= By.xpath("//input[@class='styled-button' and @name='enter']");
  4. By skip = By.xpath("//*[@id="ext-gen3"]");
  5.  
  6. public Login(WebDriver driver)
  7. {
  8. this.driver=driver;
  9. }
  10.  
  11. public void loginpage(String abc, String xyz)
  12. {
  13. driver.findElement(username).sendKeys(abc);
  14. driver.findElement(password).sendKeys(xyz);
  15. driver.findElement(Lbutton).click();
  16. }
Add Comment
Please, Sign In to add comment