Traceback (most recent call last):
File "pysplinter.py", line 4, in <module>
browser = Browser('zope.testbrowser')
File "/usr/local/lib/python2.7/dist-packages/splinter/browser.py", line 62, in Browser
raise DriverNotFoundError("No driver for %s" % driver_name)
splinter.exceptions.DriverNotFoundError: No driver for zope.testbrowser
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1439, in install
requirement.rollback_uninstall()
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 603, in rollback_uninstall
self.uninstalled.rollback()
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1855, in rollback
pth.rollback()
AttributeError: 'str' object has no attribute 'rollback'
Storing debug log for failure in /home/teshan/.pip/pip.log
Hi Teshan,
To use zope.testbrowser you should have to install zope.testbrowser.
You can do it using the following command:
pip install splinter[zope.testbrowser]
Best regards,
On Fri, Aug 14, 2015 at 9:26 AM, Teshan Nanayakkara <tesh...@gmail.com> wrote:
> I am using Python Splinter to automate a website and to scrape data from it.
> When I use the default browser mode which is keeping blank in Browser() it
> opens firefox and completes the written task but, when I use the headless
> browser 'zope.testbrowser', I get the following error. What should I need to
> do here?
>
> Traceback (most recent call last):
> File "pysplinter.py", line 4, in <module>
> browser = Browser('zope.testbrowser')
> File "/usr/local/lib/python2.7/dist-packages/splinter/browser.py", line
> 62, in Browser
> raise DriverNotFoundError("No driver for %s" % driver_name)
> splinter.exceptions.DriverNotFoundError: No driver for zope.testbrowser
>
> --
> You received this message because you are subscribed to the Google Groups
> "splinter-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to splinter-developers+unsub...@googlegroups.com.