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 251 forks source link

Submit POST/PATCH/PUT instead of GET request #724

Closed ewvikienkr closed 10 months ago

ewvikienkr commented 10 months ago

Is it possible to send POST/PATCH/PUT requests instead of GET requests? I currently have

def intercept_for_patch_api_request(self, request):
    request.method = "PATCH"

and then use driver.get() with this intercept but the request is still GET.

ewvikienkr commented 10 months ago

This approach actually works, was a mistake with my own code