how to handle browser alert

Ask general questions here.
M-K-B
Posts: 9
Joined: Tue Nov 28, 2017 12:52 pm

how to handle browser alert

Post by M-K-B » Sun Dec 10, 2017 5:57 am

hi
in our web application in forms for delete action browser alert will show that cant detect with ranorex spy how can i detect the alert and click on yes or no button
thanks in advance

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: how to handle browser alert

Post by odklizec » Sun Dec 10, 2017 9:24 am

Hi, are you sure the form/dialog in question is not traceable/available in spy? In this case, your only hope is image-based automation.

The dialog in question is browser-own dialog or it’s a part of your app? What kind of app it is (used technology)? Have you checked the availability of dialog in spy? I mean search the dialog manually in the UI tree?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

M-K-B
Posts: 9
Joined: Tue Nov 28, 2017 12:52 pm

Re: how to handle browser alert

Post by M-K-B » Sun Dec 10, 2017 11:19 am

hi
yes the alert are not trace or detect able with spy and its not part of app its browser alert and when i open the spy to detect that the spy not respond and do nothing

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: how to handle browser alert

Post by odklizec » Sun Dec 10, 2017 11:22 am

Which browser are we talking about (I guess Chrome)? Could you please share a snapshot of the browser taken at a time the dialog is shown? Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

M-K-B
Posts: 9
Joined: Tue Nov 28, 2017 12:52 pm

Re: how to handle browser alert

Post by M-K-B » Sun Dec 10, 2017 11:33 am

sure.
this alert shown when i want to delete a record from our app in chrome
Attachments
Untitled3.png
Untitled3.png (7.73 KiB) Viewed 371 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: how to handle browser alert

Post by odklizec » Sun Dec 10, 2017 11:54 am

Unforunately, what you have posted is a screenshot, not snapshot ;) Please learn how to create a Ranorex snapshot here:
http://www.ranorex.com/support/user-gui ... files.html

And for the purpose of snapshot, select main browser window (I guess the Form element). Eventually, create also snapshot of DOM element of given page. Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration