> 25 wd = webdriver.Firefox(executable_path=executable_path, firefox_profile=firefox_profile, firefox_binary=firefox_binary, firefox_options=options, log_path='geckodriver.log')#,capabilities=capabilities) SessionNotCreatedException Traceback (most recent call last) Wd = webdriver.Firefox(executable_path=executable_path, firefox_profile=firefox_profile, firefox_binary=firefox_binary, firefox_options=options, log_path='geckodriver.log') Os.system('chmod a+x '%s''%executable_path) # firefox_profile = '/Users/helloorange/Library/Application Support/Firefox/Profiles/k9a5czjm.Default User'įirefox_profile = '%s/%s' % (os.path.expanduser('~/Library/Application Support/Firefox/Profiles'), os.listdir(os.path.expanduser('~/Library/Application Support/Firefox/Profiles')))įirefox_binary = FirefoxBinary('/Applications/Firefox.app/Contents/MacOS/firefox') # Folder for Firefox v 57 # executable path = '/Users/helloorange/geckodriver'Įxecutable_path = os.path.expanduser('~/geckodriver')
0.21.0 [recommended with Firefox 57+ and seleniumįrom _profile import FirefoxProfileįrom _binary import FirefoxBinaryįrom import Options Is it possible to make it work and can someone share how they did it? I am able to run Firefox webdriver using selenium in Python, but when I try the same code while adding in an option for '-headless', I get a traceback of 'SessionNotCreatedException: Message: Unable to find a matching set of capabilities'.