F12 is not working on webpage dialog, tried to change the settings of IE with no luck.

Dont want to use AutoIT.

closed as unclear what you're asking by Nitin Rastogi, Bharat Mane, trashpanda, NarendraC, c32hedge Jul 23 at 13:55

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    What is a Web page dialog? – dzieciou Jul 4 at 5:22

A picture would make it much easier to work out what exactly you are asking, however I'll assume it's alert messages (i.e. JavaScript popups).

Selenium can work with those by using the Alert interface:


Alert alert = driver.switchTo().alert();
// get the text of the alert
// click OK / accept the alert

Hope the dialog are alerts in browser. Try the below code. If alert will be there then that will be accepted and its message will be print in output otherwise catch block will accept that exception and "Alert not found" will print.

try {
catch(Exception e) {
 System.out.println("Alert not found");

Not the answer you're looking for? Browse other questions tagged or ask your own question.