You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use raw_xhr_sb.py sample to listen xhr logs but in specific scenario a new window pop-up comes in and i need to listen xhr logs of new window (pop-up)
Pop-up window occurs when search button is clicked in related website. Any instantly start xhr request background
i can switch pop-up window using sb.switch_to_newest_window() method but can't listen it. I wonder is it possible?
The text was updated successfully, but these errors were encountered:
The only issue that might arise from that is if all the XHR data is sent before you've had a chance to switch to the new window and listen for the XHR data. In that case, you could attempt to go offline the moment the pop-up window appears (or directly before triggering the action that opens the pop-up). This would allow time to set up the listener for XHR requests. There are a few different ways to control online status. Eg: https://github.com/SeleniumHQ/seleniumhq.github.io/blob/93f5c83c59316c244e4a2fa8c616c9a4cf1b1f1c/examples/python/tests/browsers/test_chrome.py#L129-L135, using sb.driver.set_network_conditions() with the right parameters, or by using the Chrome Devtools Protocol: cdp.Network.emulateNetworkConditions.
Uh oh!
There was an error while loading. Please reload this page.
I use raw_xhr_sb.py sample to listen xhr logs but in specific scenario a new window pop-up comes in and i need to listen xhr logs of new window (pop-up)
i can switch pop-up window using
sb.switch_to_newest_window()
method but can't listen it. I wonder is it possible?The text was updated successfully, but these errors were encountered: