geckodriver

selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities with Firefox 46 through Selenium

selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities with Firefox 46 through Selenium Question: I must have some versions here that don’t match up since I can’t get Selenium with Python to fire up a Firefox web browser. I’m using an older version of Firefox because other people in here have the same …

Total answers: 7

selenium: 'geckodriver' executable may have wrong permissions

selenium: 'geckodriver' executable may have wrong permissions Question: My setup: MacOS 10.12.3 virtual env. I’ve installed selenium via pip install selenium (3.3.1). I’ve installed geckodriver via brew install geckodriver 0.15.0 Trying to run the following code in intelliJ IDE: from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Firefox(executable_path=’/usr/local/opt/geckodriver’) driver.get(“https://google.com”) elem = driver.find_element_by_name(“q”) and …

Total answers: 2

Selenium using Python – Geckodriver executable needs to be in PATH

Selenium using Python – Geckodriver executable needs to be in PATH Question: I am going over Sweigart’s Automate the Boring Stuff with Python text. I’m using IDLE and already installed the Selenium module and the Firefox browser. Whenever I tried to run the webdriver function, I get this: from selenium import webdriver browser = webdriver.Firefox() …

Total answers: 36

Get browser version using selenium webdriver

Get browser version using selenium webdriver Question: How would I get the browser version being used? >>> from selenium import webdriver >>> driver = webdriver.Firefox() >>> print version <– how to do this? Firefox 12.0 Asked By: David542 || Source Answers: The capabilities property is a dictionary containing information about the browser itself, so this …

Total answers: 9