Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

DeprecationWarning: executable_path has been deprecated, please pass in a Service object

from selenium import webdriver
from selenium.webdriver.chrome.service import Service

s=Service('C:/Users/itsmycode/Documents/Dev/chromedriver.exe')
browser = webdriver.Chrome(service=s)
url='https://www.google.com'
browser.get(url)
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #pass #Service #object
ADD COMMENT
Topic
Name
1+5 =