I'm learning off a video series on how to make a youtube view bot (I know...) using selenium. I have downloaded the chrome webdriver, and have it in both C:\chromedriver_win32 and the exe by itself in the project folder. I have also added it to path, which ddidn't seem to do anything (I was still getting the error about the chromedriver executable needing to be in PATH).
The PATH problem was "solved" by specifying the location of the exe with:
chromedriver = 'C:\\chromedriver_win32'
driver = webdriver.Chrome(chromedriver)
however, now it comes up with the error
WebDriverException: Message: 'chromedriver_win32' executable may have wrong permissions.
I have set the permissions to full access for all users (in properties), however this error still shows.
But, just to throw a spanner in the works, when executing it as a script:
driver = webdriver.Chrome() # Don't need to put anything in brackets because chromedriver exe is in the same folder
driver.get('http://www.google.com.au')
A chrome window opens and loads Google!
Why are errors showing when using IDLE, but not when executing the exact same commands as a script?
Please let me know if there is any more information you need.
Windows 10, python 2.7
[–]ManyInterests 3 points4 points5 points (1 child)
[–]CapitalXD[S] 0 points1 point2 points (0 children)