Open peter-lyons-kehl opened 8 years ago
Hi Peter,
Thank you for your feedback. My apologies for the errors in the existing README. I'm working on this now to updated it and fix the obvious errors.
When I first wrote this we were using it to drive FireFox, but we ran into some issues with a FireFox upgrade that a few months ago that we were unable to resolve so we switched to Chrome which we now use constantly and has been working fine. Siderunner has been used with FireFox, Chrome and PhantomJS but the setup is a bit tricky so I'll see if I will try to document that first and I'll see if the FireFox issues are resolved. Also, we're using Ubuntu 14.04 so I will do that first and then I'll give 16.04 a try.
Cheers, Herb
On Sun, Sep 18, 2016 at 3:30 AM, Peter Kehl notifications@github.com wrote:
Hi Herb. Thank you for SIDErunner.
However, it doesn't run well on Ubuntu 16.04.1. Installing (based on README.md) involved several workarounds:
sudo apt-get fails to install pyvirtualdisplay and selenium: E: Unable to locate package pyvirtualdisplay E: Unable to locate package selenium
To install the above, I used sudo pip instead.
Then apt-get install firefox reported that I had it installed already.
I've created a simple Python script, and run it with an XML test suite, as per README.md. That told me to sudo apt-get install xephyr, which failed, asking to run sudo pip install xephyr. That failed again... Instead, I've tried sudo apt-get install xserver-xephyr, which passed OK.
However, do you think those packages are enough? Or does SIDErunner need any more dependancies?
When running the use Python script again (see below), it opened a new black window titled 'Xephyr on:1001.0 (ctrl+shift grabs mouse and keyboard).' However, back in the terminal, Python reported:
driver = webdriver.FireFox() AttributeError: 'module' object has no attribute 'FireFox'
My script was
!/usr/bin/python
from selenium import webdriver from siderunner import SeleniumTestSuite from pyvirtualdisplay import Display
display = Display(visible=1, size=(1920,1024)) display.start()
url = 'http://localhost' suite = 'basic_tests'
pathname = '/home/pkehl/%s' % suite driver = webdriver.FireFox() driver.implicitly_wait(10) try:
tests = SeleniumTestSuite(pathname) try: tests.run(driver, url) except: driver.save_screenshot('%s-suite_error_screen.png' % suite)
finally: driver.quit() display.stop()
Please advise.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hlainchb/siderunner/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJkP1CzfkKcKUznQTUW5fSpZQfOZBbbks5qrRLUgaJpZM4J_3cB .
Herb Lainchbury, Dynamic Solutions 250.704.6154 http://www.dynamic-solutions.com
Hi Herb. Thank you for SIDErunner.
However, it doesn't run well on Ubuntu 16.04.1. Installing (based on README.md) involved several workarounds:
To install the above, I used
sudo pip
instead.Then
apt-get install firefox
reported that I had it installed already.I've created a simple Python script, and run it with an XML test suite, as per README.md. That told me to
sudo apt-get install xephyr
, which failed, asking to runsudo pip install xephyr
. That failed again... Instead, I've triedsudo apt-get install xserver-xephyr
, which passed OK.However, do you think those packages are enough? Or does SIDErunner need any more dependancies?
When running the use Python script again (see below), it opened a new black window titled
'Xephyr on:1001.0 (ctrl+shift grabs mouse and keyboard).'
However, back in the terminal, Python reported:My script was
Please advise.