HENNGE / arsenic

Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Other
351 stars 54 forks source link

How to get responses from the network activity #104

Closed emabe closed 3 years ago

emabe commented 3 years ago

Hello,

I am trying to get logs of the responses from the driver's network activity. Can someone help? I attached an example below.

Thanks!

network response example

dimaqq commented 3 years ago

I don't know :orz: but perhaps this helps? https://stackoverflow.com/questions/45847035/using-selenium-how-to-get-network-request

ojii commented 3 years ago

Arsenic implements (parts of) the WebDriver API. From what I can see, nothing in there covers what you are trying to do.

Calling the JS APIs via execute script as described in the SO post linked by dimaqq is likely the best/only approach.