Page 1 of 1

Ranorex Studio no longer closing browser windows

Posted: Wed Aug 03, 2022 10:58 pm
by tiffin.filion
I'm wondering if Ranorex Studio 10.2.4 doesn't actually work on Windows 11?

My tests worked fine when I was running 10.1.4 while on Windows 10, but now the Close application action fails. I even created a sample test using the Solution wizard and I still get the same thing.

Code: Select all

Action 'close' failed on element '{WebDocument:Automated GUI Testing Tools}'.
Index was outside the bounds of the array. 

Re: Ranorex Studio no longer closing browser windows

Posted: Wed Aug 03, 2022 11:38 pm
by tiffin.filion
I should note, if I run a test through BrowserStack and select Windows 11/Chrome, it works fine. It's just my machine where something is broken. :(

Re: Ranorex Studio no longer closing browser windows

Posted: Fri Aug 05, 2022 8:25 pm
by tiffin.filion
Did some testing with older versions of ranorex:
10.1.7 & 10.2.2 I have no issues with Close application.
10.2.3 & 10.2.4 I get the index outside of bounds error message.

Re: Ranorex Studio no longer closing browser windows

Posted: Fri Aug 12, 2022 6:08 pm
by tiffin.filion
An update, Ranorex Support was able to reproduce so it's an issue with the newer versions of Ranorex running on Windows 11. Just FYI.

Re: Ranorex Studio no longer closing browser windows

Posted: Mon Aug 15, 2022 4:28 pm
by dhale
Thanks for this post - I came across it while searching to see if anyone else was having similar issue.
I am on Win10 / Edge.
For now, I am going to switch it up a bit and do .Browser.Close() to work around the issue

Re: Ranorex Studio no longer closing browser windows

Posted: Fri Aug 19, 2022 1:06 pm
by ddweber
We are experiencing the exact same issue with version 10.2.4 on Windows 10. It seems that the close grace period of this action is the problem. With its default value of 0ms the exception gets thrown. With any value greater e.g. 1ms the issue seems to be gone.
The issue also effects the actions in the context menu of the spy tool...

Working around the issue in all our test projects is not an option. I hope that this basic functionallity is fixed in the next release :!:

Re: Ranorex Studio no longer closing browser windows

Posted: Mon Aug 22, 2022 6:17 pm
by gochi88
I'm also facing same problem, but after re install it's not happed with me.

Re: Ranorex Studio no longer closing browser windows

Posted: Tue Aug 23, 2022 4:06 pm
by dhale
I have submitted a support request regarding this issue asking for resolution.

Re: Ranorex Studio no longer closing browser windows

Posted: Tue Aug 23, 2022 5:53 pm
by tiffin.filion
dhale wrote:
Tue Aug 23, 2022 4:06 pm
I have submitted a support request regarding this issue asking for resolution.
I have as well. I emailed first week in August and they replied that they were able to replicate the issue and would let me know if there were any workarounds for it. But that was 2 weeks ago and haven't heard anything since. Going down to 10.2.2 has worked for us, and I saw another user just used code as a work around. But yah, we shouldn't have to figure out a way to make basic functionality, like closing a browser, work.

Re: Ranorex Studio no longer closing browser windows

Posted: Wed Aug 24, 2022 8:29 am
by Stub
I've been waiting since about June 6th for a resolution to my Ranorex-introduced issue. Utter silence from Ranorex on it. We're stuck with Ranorex v10.1.7!

Re: Ranorex Studio no longer closing browser windows

Posted: Thu Aug 25, 2022 7:54 am
by KaiF
ddweber wrote:
Fri Aug 19, 2022 1:06 pm
...With its default value of 0ms the exception gets thrown. With any value greater e.g. 1ms the issue seems to be gone ...
Thank you,

this tip was very helpful!

Re: Ranorex Studio no longer closing browser windows

Posted: Wed Oct 05, 2022 1:50 pm
by ddweber
This bug seems to be fixed in Ranorex 10.3.0 :)