Javascript "OK/Cancel" prompt is not handled

In recent versions of UI Vision, our macros are getting stuck when the website throws a Javascript “Are you sure” popop, with an OK or Cancel option.
We can’t handle this with XClick because the click command that caused the popup never completes, and returns the error “[error]
Line 25: Error #102: Lost contact to website”

answerOnNextPrompt - Selenium IDE Commands Tutorial Implies that UIVision should handle the prompt automatically

Update from the user:

That’s odd - testing with that page works for me as well.

I wonder what is different about the site I’m testing?
I’m afraid that I can’t give you access to it

Jez

On 14/01/2025 17:16, a9t9 Team wrote:

Hi,

Do you have a test case for me? I tested with

Test Page For JavaScript Alerts

and all works fine.

As discussed, to debug this further we would need a test page.

I have the exact same problem and it is driving me nuts.

It works fine using selenium IDE extension in Firefox, but then when you import it into ui.vision it no longer works???
Even imacros could take care of clicking yes in popup windows, but not UI.vision.

And of course what I need is to fill form from CSV, which works fine in UI.vision but not in selenium ide.

Have I just entered a Kafa universe ?

Steve

Hi @beeferman - do you have a test page for us? I am sure this issue is easy to fix once we can recreate it.

1 Like