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
Post a Comment