-
Notifications
You must be signed in to change notification settings - Fork 285
Huxley execution not working on Mac #59
Comments
Do you have firefox installed? |
Hi I'm on Windows and recently fresh install huxley I have the same error I have firefox installed although it's not my default browser. Any ideas? EditI did simple workaround to get this error away by comment some codes in C:\Python27\Lib\site-packages\huxley\main.py (line 82,83,84) #if remote:
# d = webdriver.Remote(remote, CAPABILITIES[browser])
#else:
d = DRIVERS[browser]() It seems that huxley force to open remote webdriver, even if remote option is set to None or False Next I run
For now, I can't solve this error myself. Any suggestion will be very appreciated. |
UpdateI don't know if it is a firefox problem, but it runs in chrome. But, I made minor changes to these file to make it work in addition to my previous change above. main.py #line 67
browser='chrome',
....
#line102-105
#if local:
# local_d = webdriver.Remote(local, CAPABILITIES[browser])
#else:
local_d = d I change the option here because it doesn't work when I change in the Huxleyfile Then I copied chromedriver.exe to C:\Python27\Lib\site-packages\selenium\webdriver\chrome\webdriver.py #line 32
def __init__(self, executable_path="C:\Python27\Lib\site-packages\selenium\webdriver\chrome\chromedriver", port=0, I hardcoded the executable_path here Note : I'm not familiar with python, so this is my best effort so far 😁 Now, I can record and playback test using chrome.
Then when I run the playback, it always say that Okay, now I will use it to my real project. Cheers... |
I have this same problem on OSX 10.9.4 with Firefox 30 - any ideas? |
Hi,
Having the toggle app running, I executed the the following Huxley command and I get the following output.
[will@Rebecas-MacBook-Air examples (master ✗)]$ huxley --playback
Running Huxley file: Huxleyfile
[toggle] Running test: toggle
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in **bootstrap_inner
self.run()
File "/usr/local/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, _self.__kwargs)
File "/usr/local/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/huxley/threadpool.py", line 32, in thread
func(_args, _kwargs)
File "/usr/local/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/huxley/cmdline.py", line 81, in run_test
screensize=screensize
File "/usr/local/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/huxley/main.py", line 83, in main
d = webdriver.Remote(remote, CAPABILITIES[browser])
File "/usr/local/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 72, in __init
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 114, in start_session
'desiredCapabilities': desired_capabilities,
File "/usr/local/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 165, in execute
self.error_handler.check_response(response)
File "/usr/local/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 164, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: None ; Stacktrace:
Any ideas why Huxley is not working?
The text was updated successfully, but these errors were encountered: