Anton_Selenium
Anton_Selenium

Reputation: 359

How to set ChromeProfile using Jmeter WebDriver Sampler?

Is it possible to set chrome profile capabilities?

something like

Wds.browser.options? 

using javascript Or by selenium greed node configuration?

cant find any info.

My Node options:

java -Dwebdriver.chrome.driver=D:\\apache-jmeter-4.0\\lib\\chromedriver.exe  -jar selenium-server-standalone3.14.0.jar -role node -hub http://localhost:9999/grid/register -maxSession 100 -browser browserName="chrome",version=ANY,platform=WINDOWS,maxInstances=50

Upvotes: 1

Views: 1418

Answers (1)

Dmitri T
Dmitri T

Reputation: 168157

You cannot unless you want to modify ChromeDriver Config according to your needs, recompile the plugin and replace the .jar under "lib/ext" folder of your JMeter instlalation.

Another option is use JSR223 Sampler instead of the WebDriver Sampler, in this case you will have full control over the WebDriver instance and be able to manipulate ChromeOptions, DesiredCapabilities and so on.

Be aware that recommended language for JSR223 test element is Groovy

Upvotes: 1

Related Questions