← Back to Discord Forum

Multiple waitForResponse scenario stuck issue

I have a page to test where two API are called , one for page and one for table in the same page. Second API that populates the table is dependent on first API for a field that will populate the page. I am trying to use waitForResponse for first API to get its response, and then after getting first API response, await waitForResponse to get second API response. With simple approach, test is getting stuck. Is there any way where such multiple api waitForResponse can be handled for getting values of both api's.

This thread is trying to answer question "Is there any way where multiple API waitForResponse can be handled for getting values of both APIs without the test getting stuck?"

1 reply

Hello anknegi, Can you share more specific information or share the code?

or maybe try to waitForResponse only for the second call?

Related Discord Threads

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.