Open Browser fails to open Firefox Portable

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

Open Browser fails to open Firefox Portable

Post by odklizec » Wed Feb 18, 2015 8:17 am

Hi,

This is probably more FR than a bug report ;) From some internal reasons, I need to use Firefox Portable on my laptop. I just experienced a problem with Open Browser action, which fails to start it (using "Firefox" parameter). It fails with error "Failed to run application 'firefox'." I guess there is a missing Firefox entry in registry, used by Ranorex to launch the Firefox? However, there is number of entries pointing to the Portable version.

I'm aware that Ranorex officially supports Firefox, not Firefox Portable. But since the Portable version is more or less the same Firefox as regular one, it would be nice to have it working as well.

BTW, Ranorex plugin is correctly installed to the Portable version, so at least the instrumentation recognized it correctly as Firefox.

I'm using latest Ranorex 5.2.2.

Thank you in advance.
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

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Open Browser fails to open Firefox Portable

Post by krstcs » Wed Feb 18, 2015 3:02 pm

You should use the Run Application action, with it pointed at the FF instance. You can pass the URL as a parameter to the FF executable.


There is no need for Ranorex to change anything.
Shortcuts usually aren't...

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

Re: Open Browser fails to open Firefox Portable

Post by odklizec » Thu Feb 19, 2015 8:38 am

Hi krstcs,

Thanks for your input and hint about the Run Application action. I completely forgot about it ;)

BTW, you are also right that there is nothing to fix on Ranorex side. I did a little investigation and it seems the problem is in FF Portable installation, which does not add required firefox.exe key to registry. Apparently, Ranorex is using this key to start FF. The key is expected to be here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe
with default string pointing to FF path and "Path" string pointing to FF app directory.
After adding this key and both strings manually, Ranorex Open Browser action works just fine. Maybe it helps someone else in future.
FF_regkey.png
FF_regkey.png (29.91 KiB) Viewed 1426 times
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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Open Browser fails to open Firefox Portable

Post by Support Team » Fri Feb 20, 2015 9:26 am

Hello odklizec,

Thank you for sharing your experiences with Firefox portable.

Regards,
Robert
.
Image