When I use firefox (currently using 52.7.3 ESR) and I click on OUR back button in the browser window (not the browsers own back button), it doesn't work as expected. The underlying code in our app is trying to execute the following code: window.frames[0].history.go(-1)
If I disable the Ranorex add-on, it works properly.
Unfortunately, you cannot use the browsers own back button to work around this as it kills the session.
I'm using Ranorex 8.1 and the latest 1.1.0 add-in for FF. Note that it also did not work with Ranorex 7.2 and the older add-in for that as well (I think it was 1.0.33). On Windows 10.
Aracknid
FF add-on causes issues with 'back' command
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: FF add-on causes issues with 'back' command
Hello Aracknid,
I tried to reproduce the issue you described with the latest version of Ranorex (8.1.1). The latest Firefox plug-in has the number 1.1.3. Would you mind running the instrumentation Wizard again?
This is the script I am using on my website. It also works when the Ranorex plug-in is enabled in Firefox ESR 52.7.3.
Regards,
Bernhard
I tried to reproduce the issue you described with the latest version of Ranorex (8.1.1). The latest Firefox plug-in has the number 1.1.3. Would you mind running the instrumentation Wizard again?
This is the script I am using on my website. It also works when the Ranorex plug-in is enabled in Firefox ESR 52.7.3.
<script> function goBack() { window.history.go(-1); } </script>Is your back button implemented inside an iframe?
Regards,
Bernhard
Re: FF add-on causes issues with 'back' command
I'm unable to try this out at the moment, but to answer your question, yes it is in an iframe, and note that your test didn't include the "frames[0]" part of the javascript. I've included an illustration of what is happening.
Aracknid- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: FF add-on causes issues with 'back' command
Hi Aracknid,
I tried to implement my sample website as you described, but the code you are using doesn't work with and without the Ranorex add-on enabled.
This is the HTML code I use
Regards,
Bernhard
I tried to implement my sample website as you described, but the code you are using doesn't work with and without the Ranorex add-on enabled.
This is the HTML code I use
<!DOCTYPE html> <html> <body> <div> <button onclick="goBack()">Go 1 pages back</button> </div> <iframe src="http://www.ranorex.com" width="400" height="600" ></iframe> <!DOCTYPE html> <html> <body> <script> function goBack() { window.frames[0].history.go(-1); } </script> </body> </html> </iframe> </body> </html> </html>If I remove frames[0], it works as expected. Please let me know how to change my code in order to reproduce the issue.
Regards,
Bernhard
Re: FF add-on causes issues with 'back' command
It's probably more complicated than what I provided. Would you like to jump into a remote session and have access to my environment?
Aracknid
Aracknid
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: FF add-on causes issues with 'back' command
Hello Aracknid,
Yes, that would be possible. Would you mind creating a support query on our website, so that we can clarify the details offline?
Support Query: https://www.ranorex.com/support-query/
Regards,
Bernhard
Yes, that would be possible. Would you mind creating a support query on our website, so that we can clarify the details offline?
Support Query: https://www.ranorex.com/support-query/
Regards,
Bernhard
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: FF add-on causes issues with 'back' command
Update: This issue is fixed and will be in the upcoming 8.2 release!
Cheers,
Ned
Cheers,
Ned
Re: FF add-on causes issues with 'back' command
I just installed Ranorex 8.2 which comes with FF add-on 1.1.5 and I can report that everything is fine now.
Aracknid
Aracknid
Re: FF add-on causes issues with 'back' command
Thank you for reporting back!
Regards,
Alex
Ranorex Team
Regards,
Alex
Ranorex Team