Getting error while setting the path for environment variable | Selenium Python Forum
R
Rula Pattnaik Posted on 26/01/2020

Hi I am able to proceed while writing below peice of code 

driverlocation = "C:\\Users\\skjag\\drivers\\chromedriver"
os.environ["webdriver.chrome.driver"]=driverlocation
driver = webdriver.Chrome(driverlocation)

But unable to proceed while commenting after set up env variable .so not able to proceed with page load strategy. not sure what is causing issue. I have set up below line in system var 

C:\Users\skjag\drivers\chromedriver.

can you pleae help? Thanks in advance.

 


A
Ashish Thakur Replied on 03/02/2020

Please refer to the given code : 

driverlocation = "C:\\Users\\skjag\\drivers\\chromedriver.exe"
os.environ["webdriver.chrome.driver"]=driverlocation
driver = webdriver.Chrome()


Related Posts