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 https://www.google.com
1 Like
I’ve tried this code, but it doesn’t works for me. 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
Hello Tanya,
A million apologies for only replying to you now. I was so excited I forgot to thank you.
I ended up using another solution, but from the heart I thank you very much.
1 Like
This one works