Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ with your query.

Not able to launch phantomjs using sahi in linux

venkatesh_999venkatesh_999 Members
edited July 2014 in Sahi - Open Source

Can some one help me on this issue.
Sahi Version:5.1.2

We are using Sahi Java driver to automate our products, when we try to run the automation scripts in phantomjs in a linux machine, sahi not able to launch phantomjs, but the same script is working in firefox and chrome. Its not throwing any errors in the sahi console.

We need to fix this issue ASAP, because i need to run these on a linux server.

Please find the way i have configured

Copied the phantomjs into home/sahi_pro/ext/phantomjs folder and configured the path in browsertypes as shown below.

<options>--ignore-ssl-errors=yes --debug=yes --proxy=localhost:9999 /home/venkatesh.b/sahi_pro/ext/phantomjs/phantom-sahi.js</options>

Find the below error in ecclipse console
error:Playback session not started. Verify that proxy is set on the browser.

Below are the observation in the sahi console
WARNING: commandClass = >net.sf.sahi.command.Driver< commandMethod = >setStep<
Jul 21, 2014 7:32:11 PM net.sf.sahi.command.CommandExecuter execute
WARNING: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at net.sf.sahi.command.CommandExecuter.execute(
at net.sf.sahi.LocalRequestProcessor.handleDyn(
at net.sf.sahi.LocalRequestProcessor.getLocalResponse(
at net.sf.sahi.ProxyProcessor.processLocally(
Caused by: java.lang.NullPointerException
at net.sf.sahi.command.Driver.setStep(
at net.sf.sahi.command.Driver.setStep(
... 10 more

Jul 21, 2014 7:32:11 PM net.sf.sahi.test.ProcessHelper kill
INFO: PIDs not available yet. Waiting for 1 sec
Jul 21, 2014 7:32:12 PM net.sf.sahi.test.ProcessHelper kill

Thanks in advance.
Sign In or Register to comment.