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.
Start Firefox with -jsconsole option
Hi
I'd like to start Firefox with the -jsconsole option so we can view JavaScript errors.
E.g. firefox -jsconsole
However, when we start Firefox via the SAHI test runner script it seems we cannot pass this option to the browser. There are a limited number of flags. We are using browserType and the output says browserOptions will be ignored in this case. I'm not even sure if we could pass -jsconsole via browserOptions.
Can anyone help?
with thanks
Justin Wyllie
I'd like to start Firefox with the -jsconsole option so we can view JavaScript errors.
E.g. firefox -jsconsole
However, when we start Firefox via the SAHI test runner script it seems we cannot pass this option to the browser. There are a limited number of flags. We are using browserType and the output says browserOptions will be ignored in this case. I'm not even sure if we could pass -jsconsole via browserOptions.
Can anyone help?
with thanks
Justin Wyllie
Comments
Follow these steps:
Click on "Configure" link on Sahi's dashboard. In "browser_types.xml", look for the <browserType> node with the <name> tag's value "firefox"
Now, modify the <options> tag to look like this:
Click "Save" and restart Sahi
The next time you run your script with TestRunner, you should be able to see the console.
Regards,
dkulkarni