In [6]: br = selwrp.connect('PHANTOMJS', "http://127.0.0.1:3300" )
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-6-2e20fb90ae71> in <module>()
----> 1 br = selwrp.connect('PHANTOMJS', "http://127.0.0.1:3300" )
E:\_Coding\Py27\lib\site-packages\seleniumwrapper\wrapper.pyc in connect(drivern
ame, executor, custom_capabilities, **kwargs)
64 else:
65 msg = "drivername should be one of [IE, Opera, Chrome, Firefox](
case-insentive). given {0}".format(drivername)
---> 66 raise ValueError(msg)
67
68
ValueError: drivername should be one of [IE, Opera, Chrome, Firefox](case-insent
ive). given PHANTOMJS
Please add PHANTOMJS to supported type, it has some unique feature over other backend :
Q: Why do I get the error message phantomjs: cannot connect to X server?
A: In PhantomJS 1.4 or earlier, X server is still needed. The workaround is to use Xvfb.
~~~Starting with PhantomJS 1.5, it is pure headless and there is no need to run X11/Xvfb anymore.~~~