How do you handle Alerts and Pop Ups?

Answer Posted / chetan phani.j

Alert popup
Alert a =driver.switchto().alert()
String text=a.getText().
syso(text);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can captcha and bar code reader be automated by using selenium?

543


What is the difference between verify and assert commands?

564


What’s new in selenium 3.0?

595


How to clear the text in the text box using selenium webdriver?

551


What are the advantages and disadvantages of using selenium as testing tool?

565






How to press enter key on text box in selenium webdriver?

590


How you can handle frames using selenium 2.0?

581


Explain what is the difference between find elements () and find element ()?

564


What is the purpose of creating a reference variable- ‘driver’ of type

551


What’s the difference between borland silk evaluation and selenium?

587


How to get the number of frames on a page?

623


Explain how you can handle frames using selenium 2.0?

549


Give ide's main parts and components?

612


Mention different exceptions you had in selenium web driver?

543


Give an example of the languages supported by webdriver?

569