Forum Discussion

Ilakkk's avatar
Ilakkk
Contributor
2 years ago

Popup

Hi

I am getting this popup window while opening the page. Here, i want to hit allow button. I tried the below code but doesn't worked.

>> page.Confirm.Button("Allow").Click();

 

So could you please suggest any solution??

 

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    As a temporary measure, you can add the URL to your Location settings in your browser, so the dialog doesn't appear.

  • Try recording a short test that includes clicking that button and see what code TestComplete gives you.

    • Ilakkk's avatar
      Ilakkk
      Contributor
      No. It's not captured so only I came here...
      Is it possible to close that popup