I recently started using the jmeter with selenium webdriver with a sample test and when I run the script the chrome browser is launched but not navigated to the site. I have installed the chromedriver and specified the path in the Chrome Driver Config. Please find the ss below.
In the jmeter.log file this is the error I see
2022-03-09 15:51:35,665 ERROR o.a.j.t.JMeterThread: Error calling threadStarted org.openqa.selenium.InvalidArgumentException: invalid argument: user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z' os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_321' Driver info: driver.version: ChromeDriver
2022-03-09 15:51:35,666 ERROR o.a.j.t.JMeterThread: Error while processing sampler: 'jp@gc - WebDriver Sampler'. java.lang.IllegalArgumentException: Browser has not been configured. Please ensure at least 1 WebDriverConfig is created for a ThreadGroup. at com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler.sample(WebDriverSampler.java:62) ~[jmeter-plugins-webdriver-3.3.jar:?] at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:638) ~[ApacheJMeter_core.jar:5.4.3] at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:558) ~[ApacheJMeter_core.jar:5.4.3] at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489) [ApacheJMeter_core.jar:5.4.3] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256) [ApacheJMeter_core.jar:5.4.3] at java.lang.Thread.run(Unknown Source) [?:1.8.0_321]
Not sure why its not identifying the chrome driver. I even tried to close all the open browsers and still having the same issue. In the first error it says do not use the user-data-dir. How do I configure that in jmeter. One more thing that I am user client laptop with limited access. So I can't create or use new user profile in my chrome. The chrome is managed by my organization. Thanks