c# - Selenium.DriverServiceNotFoundException Error when running remote driver -


i have automation project run local , on remote until download chrome driver version , install manually our remote machines. want start use driver nugget , download nugget , instar project , in local runs fine , after check in chenges , trying run on our remote machine error (im using mstest):

initialization method automationtests.boltaplconsumer.ini threw exception. openqa.selenium.driverservicenotfoundexception: openqa.selenium.driverservicenotfoundexception: chromedriver.exe file not exist in current directory or in directory on path environment variable. driver can downloaded @ http://chromedriver.storage.googleapis.com/index.html..

it looks files not exist reason on machine , why can ?

this driver set cod :

chromeoptions options = new chromeoptions(); options.addarguments("test-type"); options.addargument("--disable-popup-blocking"); options.addargument("--ignore-certificate-errors"); driver = new chromedriver(options); 

you need set downloaded executable chromedriver.exe current directory on path environment variable run above code is, or should provide downloaded executable chromedriver.exe current directory during initialization of chromedriver class below :-

chromeoptions options = new chromeoptions(); options.addarguments("test-type"); options.addargument("--disable-popup-blocking"); options.addargument("--ignore-certificate-errors"); driver = new chromedriver(@"path\to\chromedriver.exe location", options); 

note :- can download latest chromedriver.exe here


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -