Tuesday, February 25, 2014

Popup Alert : how to handel.

Example:
 
Create a switch to Alert object:   Alert   alert  =   driver.switchTo().alert();
Now accept the object :               alert.accept();

Xpath : How to identify a object with multiple proprieties

1) Using contains  example:        //*[contains(@id,'2_1') and @type="radio"]
2) With out contains example:   //*[@id='2_1' and @type="radio"]