Reputation: 165
I want to use selenium.webdriver to do anything, but my program doesnt seem to work
I think the problem is with the path in the script, but i am not sure because I literaly copied the text from the file path
from selenium import webdriver
from selenium import webdriver
driver = webdriver.Firefox(executable_path='/Users/Rafa/Documents/Python Projects/Firefox')
firefox.get('http://google.com.br/')
I want it to open google in firefox (any browser would serve, people recomended ,e firefox)
selenium.common.exceptions.WebDriverException: Message: 'Firefox' executable may have wrong permissions.
Upvotes: 0
Views: 929
Reputation: 889
In initializing your webdriver you don't use the firefox
browser or google
browser.
You need to use their respective drivers to allow an automation software to control it.
gecodriver
for firefox
chromium
driver for google chrome
Check their versions too for it to work.
Good luck :))
Upvotes: 1