How to crawl initiated web requests after clicking on an element
Usually catching network requests
def on_request(request):
print('--------start---------')
print(request.url)
print(request.post_data)
print('--------start---------')
page.on("request", on_request)
The page loads and fails to intercept the web request after clicking on the element
Wrong crawl web request case:
page.on("request", on_request)
page.goto("example.com")
page.locator("text=xxxxxxxx").click()
How to crawl initiated web requests after clicking on an element