[Solve] Confirm dialog not detect
[Solve] Confirm dialog not detect
Hi,
i am testing a web application but i have a problem with the dialog confirm of the browser.
I have to click on the OK button (see the attachment) but Ranorex Studio can't detect this form.
I tryed with Spy but unfortunatly when i run the test it fails.
How can i solve this?
I use Google Chrome as browser.
Thank you so much in advance
Christian
i am testing a web application but i have a problem with the dialog confirm of the browser.
I have to click on the OK button (see the attachment) but Ranorex Studio can't detect this form.
I tryed with Spy but unfortunatly when i run the test it fails.
How can i solve this?
I use Google Chrome as browser.
Thank you so much in advance
Christian
You do not have the required permissions to view the files attached to this post.
Last edited by ducarpit on Tue Apr 28, 2020 8:08 am, edited 1 time in total.
Re: Confirm dialog not detect
Hi,
Add this parameter to "Open Browser" argument...
Eventually, if you are testing multiple browsers, you will have to start browser from user code and add the above argument only to Chrome/Chromium-based Edge. This is what I'm using in one of my projects:
Add this parameter to "Open Browser" argument...
For manual xpath/repository editing, simply start chrome with this argument (chrome.exe --args --force-renderer-accessibility).--args --force-renderer-accessibility
Eventually, if you are testing multiple browsers, you will have to start browser from user code and add the above argument only to Chrome/Chromium-based Edge. This is what I'm using in one of my projects:
Code: Select all
public void StartBrowser_Open_Browser(string urlString, string browserNameString)
{
if (browserNameString=="chrome" | browserNameString=="msedge")
{
Report.Log(ReportLevel.Info, "Website", "Opening web site URL in variable $url with browser specified by variable $browserName (" + browserNameString + ") in maximized mode (with arguments --args --force-renderer-accessibility --disable-infobars --noerrdialogs --disable-session-crashed-bubble --disable-restore-session-state).");
Host.Current.OpenBrowser(urlString, browserNameString, "--ignore-certificate-errors --args --force-renderer-accessibility --disable-infobars --noerrdialogs --disable-session-crashed-bubble --disable-restore-session-state", false, true, false, false, false, false);
}
else if (browserNameString=="firefox")
{
Report.Log(ReportLevel.Info, "Website", "Opening web site URL in variable $url with browser specified by variable $browserName (" + browserNameString + ") in maximized mode.");
Host.Current.OpenBrowser(urlString, browserNameString, "", false, true, false, false, false, false);
}
else
{
Report.Log(ReportLevel.Info, "Website", "Opening web site URL in variable $url with browser specified by variable $browserName (" + browserNameString + ") in maximized mode.");
Host.Current.OpenBrowser(urlString, browserNameString, "", true, true, false, false, false, false);
}
}
Last edited by odklizec on Wed Sep 07, 2022 10:59 am, edited 1 time in total.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Confirm dialog not detect
odklizec wrote: ↑Fri Apr 24, 2020 11:34 amHi,
Add this parameter to "Open Browser" argument...For manual xpath/repository editing, simply start chrome with this argument (chrome.exe --force-renderer-accessibility).--force-renderer-accessibility
Eventually, if you are testing multiple browsers, you will have to start browser from user code and add the above argument only to Chrome/Chromium-based Edge. This is what I'm using in one of my projects:Code: Select all
public void StartBrowser_Open_Browser(string urlString, string browserNameString) { if (browserNameString=="chrome" | browserNameString=="msedge") { Report.Log(ReportLevel.Info, "Website", "Opening web site URL in variable $url with browser specified by variable $browserName (" + browserNameString + ") in maximized mode (with arguments --args --force-renderer-accessibility --disable-infobars --noerrdialogs --disable-session-crashed-bubble --disable-restore-session-state)."); Host.Current.OpenBrowser(urlString, browserNameString, "--ignore-certificate-errors --args --force-renderer-accessibility --disable-infobars --noerrdialogs --disable-session-crashed-bubble --disable-restore-session-state", false, true, false, false, false, false); } else if (browserNameString=="firefox") { Report.Log(ReportLevel.Info, "Website", "Opening web site URL in variable $url with browser specified by variable $browserName (" + browserNameString + ") in maximized mode."); Host.Current.OpenBrowser(urlString, browserNameString, "", false, true, false, false, false, false); } else { Report.Log(ReportLevel.Info, "Website", "Opening web site URL in variable $url with browser specified by variable $browserName (" + browserNameString + ") in maximized mode."); Host.Current.OpenBrowser(urlString, browserNameString, "", true, true, false, false, false, false); } }
Hi,
thanks a lot...
So i have to insert the parameter in this panel (see the attachments) under "arguments" as a new variable?
You do not have the required permissions to view the files attached to this post.
Re: Confirm dialog not detect
Hi,
Yes, that's the correct place and yes, you may (or may not) use variable here. However, as I've mentioned, if you are using multiple browsers for your tests, you will have to use code I suggested (or similar), because other browsers will not understand Chrome arguments
Yes, that's the correct place and yes, you may (or may not) use variable here. However, as I've mentioned, if you are using multiple browsers for your tests, you will have to use code I suggested (or similar), because other browsers will not understand Chrome arguments
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Confirm dialog not detect
Thanks a lot, congratulation for your work and your support!odklizec wrote: ↑Tue Apr 28, 2020 7:57 amHi,
Yes, that's the correct place and yes, you may (or may not) use variable here. However, as I've mentioned, if you are using multiple browsers for your tests, you will have to use code I suggested (or similar), because other browsers will not understand Chrome arguments
Christian
Re: [Solve] Confirm dialog not detect
Hi,
i inserted the variable in this way:
But it seems not work...
i inserted the variable in this way:
But it seems not work...
You do not have the required permissions to view the files attached to this post.
Re: [Solve] Confirm dialog not detect
Hi,
Please try it first with the standalone Spy and manually started Chrome (with this parameter). Just modify Chrome shortcut and add the parameter right after Chrome.exe. Then start Chrome, simulate opening the dialog and try to track it with Ranorex Spy.
Please try it first with the standalone Spy and manually started Chrome (with this parameter). Just modify Chrome shortcut and add the parameter right after Chrome.exe. Then start Chrome, simulate opening the dialog and try to track it with Ranorex Spy.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: [Solve] Confirm dialog not detect
Hi,
i inserted the parameter:
But unfortunatly it doesn't work.
Ranorex Spy can't detect the form, when i click on "Track" and then with the mouse i go over the "OK" button, the outline border in red doesn't appear.
Christian
You do not have the required permissions to view the files attached to this post.
Re: [Solve] Confirm dialog not detect
Hi,
And have you tried to locate the element manually in the element tree? Even if tracking is not working, it should still be possible to find the element manually. Just expand the tree and try to locate the dialog.
And have you tried to locate the element manually in the element tree? Even if tracking is not working, it should still be possible to find the element manually. Just expand the tree and try to locate the dialog.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: [Solve] Confirm dialog not detect
Exactly, i tryed...with Firefox this works fine, but with Chrome no....
Re: [Solve] Confirm dialog not detect
Hi,
Well, Firefox is a completely different story. If does not require to be running in a special debug mode. I’m afraid, I’m out of ideas. From my personal experience, this force-renderer-accessibility parameter usually works with native Chrome dialogs. So I would suggest to enable it on another PC and try it there. Also, are you sure Ranorex plugin is correctly installed in Chrome? Are you able to track web-page elements?
Well, Firefox is a completely different story. If does not require to be running in a special debug mode. I’m afraid, I’m out of ideas. From my personal experience, this force-renderer-accessibility parameter usually works with native Chrome dialogs. So I would suggest to enable it on another PC and try it there. Also, are you sure Ranorex plugin is correctly installed in Chrome? Are you able to track web-page elements?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: [Solve] Confirm dialog not detect
Hi,odklizec wrote: ↑Tue Apr 28, 2020 8:30 pmHi,
Well, Firefox is a completely different story. If does not require to be running in a special debug mode. I’m afraid, I’m out of ideas. From my personal experience, this force-renderer-accessibility parameter usually works with native Chrome dialogs. So I would suggest to enable it on another PC and try it there. Also, are you sure Ranorex plugin is correctly installed in Chrome? Are you able to track web-page elements?
yes i am able to track web-page elements but when the Chrome Dialog is open i can't, the outline border in red doesn't appear over the component when the dialog is open....
Christian
Re: [Solve] Confirm dialog not detect
Hi,
Yes, I understand that the live tracking is not available. However, you should still be able to find the element inside Chrome's form element tree. Here is a small example:
Yes, I understand that the live tracking is not available. However, you should still be able to find the element inside Chrome's form element tree. Here is a small example:
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: [Solve] Confirm dialog not detect
Hi,
yes, i think i found it:
But unfortunatly it doesn't work, i did this test some times and...same problem!
Tomorrow morning i will try again...
You do not have the required permissions to view the files attached to this post.
Re: [Solve] Confirm dialog not detect
Hi,
What exactly does not work? The xpath you manually created in repo does not work in test itself?
What exactly does not work? The xpath you manually created in repo does not work in test itself?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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