18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Browser not opening from dashboard after java update.
Pratik Anand Shah
Moderators
Hi All
The ability to launch browsers from the Dashboard is broken with the "1.7.0_21" Java version. It is possible that it is broken in previous 1.7 versions too.
This happens due to the space in "Program Files".
Unfortunately this cannot be fixed by any changes to browser_types.xml.
We will soon be releasing a new build which will have a fix for this issue.
Till then, the workaround is to use a 1.5.x or 1.6.x JRE version for running Sahi.
To achieve this, please follow these steps.
- Open "userdata\bin\start_dashboard.bat".
- Add the following line before the call to dashboard.bat.
SET PATH=<1.5.X or 1.6.x JRE bin path>;%PATH%
For example, my start_dashboard.bat entries look like this...
SET PATH="C:\Program Files (x86)\Java\jdk1.6.0_21\bin";%PATH%
CALL %SAHI_HOME%\bin\dashboard.bat
This will ensure that the older JRE version is used and you will be able to work with the existing app.
Thanks,
Pratik Shah
The ability to launch browsers from the Dashboard is broken with the "1.7.0_21" Java version. It is possible that it is broken in previous 1.7 versions too.
This happens due to the space in "Program Files".
Unfortunately this cannot be fixed by any changes to browser_types.xml.
We will soon be releasing a new build which will have a fix for this issue.
Till then, the workaround is to use a 1.5.x or 1.6.x JRE version for running Sahi.
To achieve this, please follow these steps.
- Open "userdata\bin\start_dashboard.bat".
- Add the following line before the call to dashboard.bat.
SET PATH=<1.5.X or 1.6.x JRE bin path>;%PATH%
For example, my start_dashboard.bat entries look like this...
SET PATH="C:\Program Files (x86)\Java\jdk1.6.0_21\bin";%PATH%
CALL %SAHI_HOME%\bin\dashboard.bat
This will ensure that the older JRE version is used and you will be able to work with the existing app.
Thanks,
Pratik Shah
Comments
As mentioned above, the ability to launch browsers from the Dashboard is broken with the "1.7.0_21" Java version. It is possible that it is broken in previous 1.7 versions too.
If you wish to use Sahi with the 1.7.0_21 Java version, you may use the following workaround.
The problem is with the space in "Program Files".
The workaround is to use the DOS short path for the browser exe.
Steps to get the DOS short path
- Open a command prompt.
- Navigate to the path that contains the exe.
Example: Firefox.exe on my machine is at
C:\Program Files (x86)\Mozilla Firefox
- Type "for %I in (.) do echo %~sI" without the double quotes and press Enter.
- You will see the short path. For the above example, the short path is "C:\PROGRA~2\MOZILL~1".
Changes in browser_types.xml
- Start Sahi. From the Sahi Dashboard, click on Configure.
- Click on browser_types.xml.
- Replace the full path for the exes with the corresponding DOS short path.
The FireFox browserType node in my browser_types.xml now looks like this.
<browserType>
<name>firefox</name>
<displayName>Firefox</displayName>
<icon>firefox.png</icon>
<path>C:\PROGRA~2\MOZILL~1\firefox.exe</path>
<options>-profile "$userDir/browser/ff/profiles/sahi$threadNo" -no-remote</options>
<processName>firefox.exe</processName>
<capacity>5</capacity>
</browserType>
- Save the changes to browser_types.xml.
- Restart Sahi.
Now you should be able to launch the browsers from the Sahi Dashboard.
Thanks to Walter Whitaker for providing this workaround.
Thanks,
Srini
after doing as what you've stated for my Firefox browser, the button is missing from the dashboard..
any solutions?
Most likely, the path you entered has some small mistake.
You may verify this by doing the following
- Open a command prompt
- Type the full path mentioned in the <path> node and press Enter.
- If Firefox does not open, your path is incorrect. Fix your path.
- If Firefox opens, let me know
Thanks,
Srini