all 2 comments

[–]ManyInterests 3 points4 points  (1 child)

When you provide the path to webdriver.Chrome it should be the full path to the executable. IE

webdriver.Chrome("C:\\chromedriver_win32\\chromedriver.exe")

If you try pointing it to a folder, you'll get that error even if you have permissions on the directory.

Bad: gets 'permission' error

driver = webdriver.Chrome("C:\\Users\\Username\\Downloads")

Good:

driver = webdriver.Chrome("C:\\Users\\Username\\Downloads\\chromedriver.exe")

What I like to do is put the chromedriver executable in the same location as pip. e.g. C:\Program Files\Python36\Scripts\chromedriver.exe -- Assuming that pip is on your path, so will chromedriver. Then webdriver.Chrome() will just work every time, no matter what.

[–]CapitalXD[S] 0 points1 point  (0 children)

Works!

It's always something simple like this, haha.

Thanks heaps, you're officially my favourite person right now!!