java - How to run selenium tests on chrome if only binary file of chrome is placed in a server location in E drive -


i have situation in project below :

my code executing expected till admin uninstalled chrome , ff jenkins server.

after raising concern placed chrome binary in e drive .( e:\gc local\googlechrome).but chrome not installed anywhere

i facing issues resolve this.

do guide here ?

code used :

if ("chrome".equals(browser)) { system.setproperty("webdriver.chrome.driver", system.getproperty("user.dir") + "\\src\\test\\resources\\drivers\\chromedriver.exe"); chromeoptions options = new chromeoptions(); options.addarguments("--disable-extensions"); options.addarguments("--start-maximized"); driver = new chromedriver(options); } 

will work ?

chromeoptions options = new chromeoptions(); options.setbinary("e:\\gc local\\googlechrome"); 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -