Page will detect chrome as being in incognito despite being a normal window:
\n
\nAs opposed to the same code being run on Windows:
\n
\nAnd the browser going to the same page manually without using Seleniumbase on Linux:
\n
\nIs there a way to make it not be detected as an incognito window in UC mode on Linux?
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Try this script:
\nfrom seleniumbase import SB\n\nwith SB(uc=True, test=True) as sb:\n url = \"https://pixelscan.net/fingerprint-check\"\n sb.activate_cdp_mode(url)\n sb.remove_element(\"#headerBanner\")\n sb.wait_for_element(\"pxlscn-dynamic-ad\")\n sb.sleep(0.5)\n sb.remove_elements(\"pxlscn-dynamic-ad\")\n sb.sleep(2)\n sb.assert_text(\"No masking detected\", \"pxlscn-fingerprint-masking\")\n sb.assert_text(\"No automated behavior\", \"pxlscn-bot-detection\")\n sb.cdp.highlight('span:contains(\"is consistent\")')\n sb.sleep(1)\n sb.cdp.highlight(\"pxlscn-fingerprint-masking p\")\n sb.sleep(1)\n sb.cdp.highlight(\"pxlscn-bot-detection p\")\n sb.sleep(2)
","upvoteCount":1,"url":"https://github.com/seleniumbase/SeleniumBase/discussions/4164#discussioncomment-15226514"}}}
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Try this script: