I am trying to run Selenium through PyCharm CE on MacOS, and am attempting to run it with Google Chrome.
However, whenever I run the following:
from selenium import webdriver
browser = webdriver.Chrome("/Users/louiscage/PycharmProjects/SeleniumPractice/chromedriver")
browser.get('https://inventwithpython.com')
This is the result:
/Users/louiscage/PycharmProjects/SeleniumPractice/SeleniumPractice.py:3: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
browser = webdriver.Chrome("/Users/louiscage/PycharmProjects/SeleniumPractice/chromedriver")
I had downloaded the Chromedriver and Geckodriver for Mac64, and placed it in the proper directory for my PyCharm project. But I still can't seem to find a solution to this issue. Any help would be greatly appreciated.