With Selenium you cannot an element if it does not exist in dom model (unless your is loaded) of a . You have either to configure your resource (or browser) not to cause such the alerts displayed or to use windows UI automation tools like AutoIt so that it is integraetd into your test code.

As you are using Selenium IDE I am not sure this is straightforward to integrate your test code with some other technologies. If the resource configuration is not an option I would try to write a windows automation script that would be looking up such the dialog constantly and accept it once it appears (this should run as a side parallel process while your tests are being running)

Source link https://sqa.stackexchange.com/questions/29307/cannot---on-this-page--comes--with--as-


Please enter your comment!
Please enter your name here