Comment 1 for bug 1262228

Revision history for this message
Patrick Hetu (patrick-hetu) wrote :

This would be indeed very usefull. I got it to work with trusty's python-selenium package with the following modifications:

#1 Catch engine check in a try loop and ignore them if there are not installed.

u-ph:~/repos/python/selenium-simple-test/examples$ sst-remote -b Chrome -u http://localhost:9515 -n test
Traceback (most recent call last):
  File "/usr/local/bin/sst-remote", line 9, in <module>
    load_entry_point('sst==0.2.4', 'console_scripts', 'sst-remote')()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 339, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2470, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2184, in load
    ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/sst/scripts/remote.py", line 29, in <module>
    from sst import (
  File "/usr/local/lib/python2.7/dist-packages/sst/browsers.py", line 95, in <module>
    class PhantomJSFactory(BrowserFactory):
  File "/usr/local/lib/python2.7/dist-packages/sst/browsers.py", line 97, in PhantomJSFactory
    webdriver_class = webdriver.PhantomJS
AttributeError: 'module' object has no attribute 'PhantomJS'

#2: fix https://bugs.launchpad.net/selenium-simple-test/+bug/1394741

#3: fix https://bugs.launchpad.net/selenium-simple-test/+bug/1289990

#4: Also the chromium-chromedriver is broken so maybe add instruction on how to download and run google's version:
  https://sites.google.com/a/chromium.org/chromedriver/downloads