Quantcast
Channel: [Q&A - FAQ Neotys] Last questions
Viewing all articles
Browse latest Browse all 2283

Chromedriver not launching in Load generator

$
0
0

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;


Viewing all articles
Browse latest Browse all 2283

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>