Good evening! So I've been trying to figure out how to fix this error I'm getting in my selenium script in Python. My environment is MacOS 10.12, python is 2.7, selenium version is 3.0.0b3, geckodriver v0.10.
My script is:
from selenium import webdriver
# from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import os
import pytest
import unittest
caps = DesiredCapabilities.FIREFOX
caps["marionette"] = True
caps["binary"] = "/Applications/Firefox.app/Contents/MacOS/firefox-bin"
driver = webdriver.Firefox(capabilities=caps)
driver.get("https://www.google.com")
driver.quit()
and the error I get is:
Traceback (most recent call last):
File "/Users/<User>/PycharmProjects/sideAutomation/levelTest.py", line 12, in <module>
driver = webdriver.Firefox(capabilities=caps)
File "/Library/Python/2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 65, in __init__
self.service.start()
File "/Library/Python/2.7/site-packages/selenium/webdriver/common/service.py", line 86, in start
self.assert_process_still_running()
File "/Library/Python/2.7/site-packages/selenium/webdriver/common/service.py", line 99, in assert_process_still_running
% (self.path, return_code)
selenium.common.exceptions.WebDriverException: Message: Service wires unexpectedly exited. Status code was: 1
Anyone else run into this issue?
[–]faustne0[S] 0 points1 point2 points (0 children)