Wait for response matcher example

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

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:

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.