Closed d3cryptofc closed 10 months ago
Duplicate of https://github.com/seleniumbase/SeleniumBase/issues/2243#issuecomment-1797864769, https://github.com/seleniumbase/SeleniumBase/issues/1774#issuecomment-1444399269, https://github.com/seleniumbase/SeleniumBase/issues/2032#issuecomment-1693931853, https://github.com/seleniumbase/SeleniumBase/issues/2151#issuecomment-1741234068, etc.
Due to unresolved issues with selenium-wire
: https://github.com/wkeeling/selenium-wire/search?q=undetected&type=issues, UC Mode and Wire Mode cannot be combined. Pick one or the other.
I need to use
wire
mode anduc
too, but...β It works
>>> driver = Driver(wire=True) >>> driver.requests []
β It causes a webdriver class conflict
>>> driver = Driver(wire=True, uc=True) >>> driver.requests AttributeError: 'Chrome' object has no attribute 'requests'
Did you find a way to make both work together? I am facing the same situation now.
https://github.com/seleniumbase/SeleniumBase/issues/2337#issuecomment-1838843884 still holds.
The best alternative involves getting the requests from CDP events. (See SeleniumBase/examples/uc_cdp_events.py for details.)
@uesleivsouza
Did you find a way to make both work together? I am facing the same situation now.
I didn't, infortunely.. also the CDP events doesn't have a HTTP response text, I needed it π’
Thereβs also https://github.com/seleniumbase/SeleniumBase/issues/2220.
More info: https://stackoverflow.com/a/52636871/7058266
#2337 (comment) still holds.
The best alternative involves getting the requests from CDP events. (See SeleniumBase/examples/uc_cdp_events.py for details.)
Thank you for reply quickly, but unfortunately I think it can't fit to my application, I need to change the request, not only listen it .. I think I have to find another with external tools like proxy.
I need to use
wire
mode anduc
too, but...β It works
β It causes a webdriver class conflict