Closed bjornkarlsson closed 1 month ago
Looks like a duplicate of https://github.com/seleniumbase/SeleniumBase/issues/2162#issuecomment-1851998232.
You will need to do a refresh()
to get some logs because otherwise some logs are lost during the disconnect/reconnect process of UC Mode where the driver is disconnected from the browser.
Tested, and seems fine. Would the refresh hit the browser cache with the default options, are are there any options to enforce that?
That is mainly to halve the amount of requests that could be performed for a rate limited site in a certain timespan.
Refreshing the page will keep the options that were already set when you launched the web browser, plus any new ones that were added or changed via driver.execute_cdp_cmd()
, such as for changing the GeoLocation. There's a good example of that GeoLocation changing here: SeleniumBase/examples/test_geolocation.py. I would experiment to learn more. Be sure to try out the various examples in the SeleniumBase/examples folder.
Given the task to retrieve the 'Network.responseReceived' for the url being requested, this is not possible when using the uc mode.
Example code highlighting the issue.
Using untedeteched-chrome directly I have the same exact same issue:
It's unclear to me wether seleniumbase is a fork/continuation of undetected-chromedriver, as it has been discontinued, as such if this is a real issue (and not using the api wrong) could be fixed in this codebase, otherwise this feature remains broken?
I also tried to activating the uc_cdp flag but helds the same result.
Thanks for your support!