How do you open firefox incognito using selenium webdriver plugin?

507 views
Skip to first unread message

Jun Yi Lay

unread,
Nov 2, 2020, 5:16:15 AM11/2/20
to jmeter-plugins
I do not know how to open an incognito firefox window using selenium webdriver plugin under javascript. Does anyone know how to?

Dmitri Tikhanski

unread,
Nov 2, 2020, 10:34:58 AM11/2/20
to jmeter-plugins
There is no way of doing this using WebDriver Sampler 3.3 as the Firefox initialization is happening within Firefox Driver Config so you will either have to patch this class to add -private argument like:

   DesiredCapabilities caps = new DesiredCapabilities();
   FirefoxOptions options = new FirefoxOptions();
   options.addArguments("-private");
   caps.setCapability("moz:firefoxOptions",options);

or consider switching to JSR223 Sampler where you will have full control over browser initialization and configuration

Jun Yi Lay

unread,
Nov 2, 2020, 8:10:02 PM11/2/20
to jmeter-plugins
Do you mean adding the -private argument in the webdriver sampler script?
Reply all
Reply to author
Forward
0 new messages