Can you please tell me why it driver is stack on opening or refresging page after setting cookies? I tried pure cdp mode, but i have the same result. Sometimes it opens page for like 10 minutes. Is this code or browser issue?
","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"sb.driver.add_cookie() is a WebDriver method. WebDriver isn't stealthy.
Calling WebDriver methods from CDP Mode will either remove your stealth or not work at all.
\nSince sb.driver.add_cookie() can only work on a matching domain, it means you already opened a URL to get there. Calling sb.open() from UC Mode automatically activates CDP Mode now. Using sb.driver.get(URL) instead will keep you in plain UC Mode.
-
|
cookies = [] Can you please tell me why it driver is stack on opening or refresging page after setting cookies? I tried pure cdp mode, but i have the same result. Sometimes it opens page for like 10 minutes. Is this code or browser issue? |
Beta Was this translation helpful? Give feedback.
-
|
Also why is that website detects pure cdp mode, but not uc mode in docker container? |
Beta Was this translation helpful? Give feedback.
-
|
Calling WebDriver methods from CDP Mode will either remove your stealth or not work at all. Since |
Beta Was this translation helpful? Give feedback.
sb.driver.add_cookie()is a WebDriver method. WebDriver isn't stealthy.Calling WebDriver methods from CDP Mode will either remove your stealth or not work at all.
Since
sb.driver.add_cookie()can only work on a matching domain, it means you already opened a URL to get there. Callingsb.open()from UC Mode automatically activates CDP Mode now. Usingsb.driver.get(URL)instead will keep you in plain UC Mode.