Broken Links
Broken Links
-------
XPath
--------
Address of an element
2 kinds of xpaths
------
/html/body/header/div/div/div[1]/div/a/img
//div[@id="logo"]/a/img
//img[@title='Your Store']
differences....
Relative xpath
why?
bcoz absolute xpath wont work if there are any changes in web page.
//tagname[@attribute='value']
//img[@title='Your Store']
ay-17
------
Test case
--------
1) Launch browser
2) open url
https://opensource-demo.orangehrmlive.com/
7) close browser
Assignement
----------------
1) Launch browser
2) open url
URL: https://admin-demo.nopcommerce.com/login?ReturnUrl=%2Fadmin%2F
7) Verify Dasboad
ref
----
WebElement txtemailbox=driver.findElement(By.name("username"));
txtemailbox.clear();
txtemailbox.sendKeys("email..");
driver.findElement(By.id("Email"));