# Wait for response matcher example

**URL:** https://forum.robotframework.org/t/wait-for-response-matcher-example/1928
**Category:** Browser
**Created:** [10 June 2021 13:04 UTC](https://forum.robotframework.org/t/wait-for-response-matcher-example/1928 "2021-06-10T13:04:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sebplais](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Sebplais](https://forum.robotframework.org/u/Sebplais)
#### Post date: [10 June 2021 13:04 UTC](https://forum.robotframework.org/t/wait-for-response-matcher-example/1928/1 "2021-06-10T13:04:14Z")

</div>

Hello,

In my test I am trying to catch the end of action triggered by a click before moving on.

Using javascript + playwright this end up with :

waitForResponse(res=\> /actions/[0-9]+/.test(res.url()) && res.request().method() === ‘GET’);

My question is how to convert that with Robot + Browser lib using wait for response ?  
Does anyone know how to write the matcher parameter to have the same behavior ?

The documentation and examples around these wait for xxx keywords is not very detailed

Thanks in advance for your help

---

<div class="post-metadata">

### Author: ![Mamyth](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/mamyth/32/1142_2.png) [@Mamyth](https://forum.robotframework.org/u/Mamyth)
#### Post date: [7 June 2022 06:48 UTC](https://forum.robotframework.org/t/wait-for-response-matcher-example/1928/2 "2022-06-07T06:48:40Z")

</div>

Hey Sebplais,

I’m also struggling to get the browser Wait For Reponse Matcher to work.

I’ve tried:

> ```
> ${promise} = Promise To Wait For Response matcher="https://forum.robotframework.org/t/wait-for-response-matcher-example"
> Click //div//span//class="k-input"]
> Wait For ${promise}
> 
> ```

But I find that it errors because I’ve put the matcher in quotations, which it then seems to assume is a regex. If I remove the quotations, like in this example:

> **[Playwright: Selenium for the next 15 years](https://www.linkedin.com/pulse/playwright-selenium-next-15-years-mark-percival/)**
>
> If you've spent any time in RPA, you've undoubtedly been involved in browser automation. And if you've worked on the open source and python side, you've likely used Selenium to drive your browser automation.

Then it gives me an error saying that the JSON object is a NonType.

Did you end up figuring this out at all?

Thanks in adavance.
