-
|
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.
Replies: 2 comments 3 replies
-
|
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.