Incognito Window

Hello Guys, I’m new here and I started studying automation 2 weeks ago. I’m trying to get my tests to open Google Chrome in the incognito window but I can’t. can you help me? Sorry if I’m posting in the wrong place.

I’ve tried this, it works for me.

${options}=    Evaluate  sys.modules['selenium.webdriver'].ChromeOptions()  sys, selenium.webdriver
Call Method    ${options}    add_argument    incognito
Create WebDriver    Chrome    chrome_options=${options}
Go To

I’ve tried this code, but it doesn’t works for me. :frowning: Here is the pic for error message. @Tanya

usually when I have seen this error it’s because chrome has auto updated and you need to update your chrome driver to match the chrome version.

1 Like