Michael Mintz

Results 131 comments of Michael Mintz

Also for `wire` mode, here's a method that can be added to change the proxy settings in the middle of a script: ```python def set_wire_proxy(string): """Examples: set_wire_proxy("SERVER:PORT") set_wire_proxy("socks5://SERVER:PORT") set_wire_proxy("USERNAME:PASSWORD@SERVER:PORT") """...

The `set_wire_proxy(string)` method was added directly into the `driver` - (`--wire` mode only): `driver.set_wire_proxy(string)` (in seleniumbase `4.19.2`)

There's ``--uc`` mode, and there's ``--wire`` mode, but the two can't be used together due to unresolved issues with ``selenium-wire``: https://github.com/wkeeling/selenium-wire/search?q=undetected&type=issues But the good news is that you don't need...

@guocity `uc_cdp` with `remote_debug` is working for me.

@guocity What exactly do you mean by "it won't work"? The screenshot I took in https://github.com/seleniumbase/SeleniumBase/issues/2145#issuecomment-2092074713 was with `uc_cdp_events=True` and `remote_debug=True`. I was able to inspect the "devices" (browser windows).

This is the main thing that `uc_cdp_events=True` does: ```python options.set_capability("goog:loggingPrefs", {"performance": "ALL", "browser": "ALL"}) ``` If that's causing some kind of port conflict, then that's from Selenium internals / Chrome...

Then something like this might be all you need: ```python from rich.pretty import pprint from seleniumbase import SB with SB(log_cdp=True, remote_debug=True) as sb: url = "seleniumbase.io/demo_page" sb.open(url) sb.sleep(2) pprint(sb.driver.get_log("performance")) ```

@AlexPaiva Some people are still using it, so it's probably still valid, even though it hasn't been updated in awhile. But at this point, `selenium-stealth` is mainly just for fingerprint-masking....

@kitsune0n If the `driver` needs to disconnect (eg, a `uc_open` method is called) or if going to a site with a Cloudflare CAPTCHA (eg. via `driver.get()`, where the disconnect is...

https://github.com/seleniumbase/SeleniumBase/discussions/2856#discussioncomment-9789603: When UC Mode disconnects the driver from Chrome to evade detection, it also resets any settings made by `selenium-stealth`. Also, it appears that using `selenium-stealth` to modify settings will...