Unanswered question

Chromedriver not launching in Load generator

I have built selenium scripts to execute functional test cases ussing theNeoload proxy driver. The scripts launch chrome brwser instances in the LC but fail to do so in the LGs, is there a configuration to be included to make it work. Below is the driver instantiationpiece of code that I am using for your reference:

switch (browser) {
case "chrome":
logger.info("Creating the instance of webdriver.chrome.driver...");
String filepath = customResourcesNLPathNL +"chromedriver.exe";

final File file = new File(customResourcesNLPathNL +"chromedriver.exe");

System.setProperty("webdriver.chrome.driver", file.getAbsolutePath());

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("chrome.setProxyByServer", true);

final ChromeDriver webDriver = new ChromeDriver(addProxyCapabilitiesIfNecessary(new DesiredCapabilities()));

driver = NLWebDriverFactory.newNLWebDriver(webDriver, userPath, projectPath);

logger.info("Initialized the Neoload proxy driver for Chrome browser");

break;

Rahul N.
Rahul N.

Rahul N.

Level
0
7 / 100
points

No answers