Webdriver: start Firerox-Browser in private mode

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Patrick Hollerbach
Posts: 26
Joined: Thu Jan 02, 2014 4:00 pm

Webdriver: start Firerox-Browser in private mode

Post by Patrick Hollerbach » Fri Aug 23, 2019 9:54 pm

Hi there,

is it possible to execute a test with a webdriver endpoint in firefox private mode?

I need to use webdriver because ranorex instrumentation in firefox doesn't work here (because of restricted admin rights, long story, don't want to tell).

Thanks,
Patrick

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5258
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Webdriver: start Firerox-Browser in private mode

Post by odklizec » Mon Aug 26, 2019 9:04 am

Hi,

I’m not using webdriver, but I believe you must simply setup webdriver configuration for FF, similar as discussed here:
viewtopic.php?f=4&t=14065&p=54861

And argument for FF running in private mode, should be “private”.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Patrick Hollerbach
Posts: 26
Joined: Thu Jan 02, 2014 4:00 pm

Re: Webdriver: start Firerox-Browser in private mode

Post by Patrick Hollerbach » Wed Aug 28, 2019 11:58 am

Hi,

you brought me on the right path, thank you!
Working config:

Code: Select all

{
   "browserName": "firefox",
   "moz:firefoxOptions": {
   "args": [
   "-private"
 ]
 }
}