Answer Posted / annasaheb
To Handle Alert
Alert alert = driver.switchTo().alert();
message = alert.getText();
alert.accept();//to accept alert
alert.dismiss();//to cancel alert
| Is This Answer Correct ? | 19 Yes | 1 No |
Post New Answer View All Answers
Why do you need session handling while working with selenium?
What are some of the advantages of selenium grid?
How to insert a start point in selenium ide?
What do you mean by xpath?
Tell me does the selenium have any limitations?
How can you find broken links in a page using selenium webdriver?
How to perform right click using selenium webdriver?
What is object repository? How can we create object repository in selenium?
What is the selenium webdriver?
Which are the browsers supported by selenium rc?
Tell me how you can capture server side log selenium server?
Please explain what are the different types of locators in selenium?
How to read a javascript variable in selenium webdriver?
What are the main advantages of automation testing?
What is a fundamental difference between xpath and css selector?