Page 1 of 1

Spy not able to detect javascript alert button in FireFox

Posted: Tue Dec 29, 2015 10:02 am
by samantha.chin
Hi, I have a difficulties in finding element OK button on Alert in Firefox. I tried shift+Lwin but cannot work and am new on this. Please assist. Thanks.

Eg.

1) Go to google and find "w3schools javascript alert example" (P/S: Not able to post the sample URL in this forum)
2) Select the first link "JavaScript Popup Boxes - W3Schools"
3) Click Try it yourself under the Example
4) Click on Try It button
5) Using Ranorex spy to find the OK button

Re: Spy not able to detect javascript alert button in FireFox

Posted: Tue Dec 29, 2015 1:40 pm
by Support Team
Hello samantha.chin,

That issue is known and we are currently working on a solution.

Meanwhile, as a workaround, it is possible to navigate to the corresponding dialog elements using Ranorex Spy. These elements can be found within the Firefox form element.
js_dialog.png
Please let me know if the workaround solved the issue.

Regards,
Johannes

Re: Spy not able to detect javascript alert button in FireFox

Posted: Wed Dec 30, 2015 2:27 am
by samantha.chin
Hi Johannes,

Thanks and it worked! Appreciate your guidance.

Re: Spy not able to detect javascript alert button in FireFox

Posted: Thu Jan 07, 2016 11:04 am
by Support Team
Hello,

There is another way to record/track such dialogues in Firefox.

Please carry out the following steps to change the corresponding Firefox setting:
1) Open Firefox
2) Navigate to "about:config" (enter it in the address bar)
3) Search for "prompts.tab_modal.enabled" and change the value to "false"

Consequently, the modal dialog will be identified as a separate form and not as part of the UI structure of the browser. Note that the previously created path will no longer work after changing this setting.
ModalDialog_Firefox.png
Regards,
Johannes