I want to automate this page and click Ok Button, but the page is not displaying in HTML in Firebug and status is coming as "Waiting for ..."
In such cases how to automate the click without elements ? Please advice..
I want to automate this page and click Ok Button, but the page is not displaying in HTML in Firebug and status is coming as "Waiting for ..."
In such cases how to automate the click without elements ? Please advice..
If there is no DOM associated with the element that you want to interact with(similar to the one in your case), use Java robot class to send a {ENTER}
. I believe this will solve your problem.
It is browser app alert or pop up message. Generally it will not give any response on alert.accept();
. For this type of alert below approach that can be used :
User Desktop automation : User Robot
or AutoIt
to click on OK
As it is Firefox specific, Script can use with Profile :
FirefoxProfile customProfile = new FirefoxProfile();
customProfile.setPreference("dom.disable_beforeunload", true);
FirefoxDriver driver = new FirefoxDriver(customProfile);
Let me know if any other scenario happened with this pop up and verify my answer.