wkeeling / selenium-wire

Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser.
MIT License
1.9k stars 254 forks source link

Ways to repeat a sent request? #382

Closed shinkuan closed 3 years ago

shinkuan commented 3 years ago

Is there any way I can completely repeat a sent request? like:

for request in driver.requests
    request.repeat()

or intercept the request I want and send it multiple times?

wkeeling commented 3 years ago

Thanks for raising this. There's currently no way to repeat a request using Selenium Wire. Out of curiosity, what's your use case for wanting to do that?

shinkuan commented 3 years ago

Aw, ok. ._. I was using Charles web debugging tool, and found that google reCaptcha V3 invisible sent a request, and return a token. By repeating the same request sent, I got another working token, but repeating a request absolutely the same in python is so complex, so I am trying to do this using selenium.

shinkuan commented 3 years ago

Since the question is answered, I'm closing this issue.