Skip to content

How to listen newest window's XHR? #3812

Closed
@muffinweb

Description

@muffinweb

After using sb.switch_to_newest_window() method to listen XHR of newest window, i recall listenXHR(tab) method to listen xhr logs.

# Switching newest window
sb.switch_to_newest_window()

# Recalling 
tab = sb.cdp.tab
listenXHR(tab)
.
.
loop = sb.cdp.get_event_loop()
xhr_responses = loop.run_until_complete(receiveXHR(tab, xhr_requests))
.
.

i also made a simple demo website that fits my scenario while i'm trying to solve it.

W3School's service for static web apps

https://myedgecase.w3spaces.com/index.html

I mention this issue before here #3782, but i guess i couldn't point actual problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModequestionSomeone is looking for answers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions