Trying to get test running on phantomjs
I have setup phantomjs on my machine by following your instructions here: http://
I'm trying to run a basic script:
#!/usr/bin/env python
from sst.actions import *
driver = webdriver.
go_to('http://
assert_
driver.quit()
This is the output:
(ENV)qa@
-------
starting SST...
date time: 2013-05-02 10:12
test directory: '.'
report format: 'console'
browser type: 'Firefox'
shared directory: None
screenshots on error: False
failfast: False
debug: False
headless xserver: False
1 test cases loaded
-------
sst.runtests.
Starting browser
ERROR
=======
ERROR: sst.runtests.
-------
_StringException: Traceback (most recent call last):
File "/home/
super(
File "/home/
self.
File "/home/
self.browser = self.browser_
File "/home/
return self.webdriver_
File "/home/
self.binary = FirefoxBinary()
File "/home/
self._start_cmd = self._get_
File "/home/
" Please specify the firefox binary location or install firefox")
RuntimeError: Could not find firefox in your system PATH. Please specify the firefox binary location or install firefox
-------
Ran 1 test in 0.022s
FAILED (errors=1)
-------
I dont have FF installed on my machine.
If I run it with -b PhantomJS I get this error.
(ENV)qa@
-------
starting SST...
date time: 2013-05-02 11:37
test directory: '.'
report format: 'console'
browser type: 'PhantomJS'
shared directory: None
screenshots on error: False
failfast: False
debug: False
headless xserver: False
1 test cases loaded
-------
sst.runtests.
Starting browser
ERROR
=======
ERROR: sst.runtests.
-------
_StringException: Traceback (most recent call last):
File "/home/
super(
File "/home/
self.
File "/home/
self.browser = self.browser_
File "/home/
return self.webdriver_
File "/home/
self.
File "/home/
raise WebDriverExcept
WebDriverException: Message: 'Unable to start phantomjs with ghostdriver.' ; Screenshot: available via screen
-------
Ran 1 test in 0.032s
FAILED (errors=1)
-------
Thanks.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Callistus for more information if necessary.