Playwright request interception

Are we able to use the Playwright request interception and mocking capabilities in Codeceptjs?

hey! of course you can! check this example

From your code snippet, no interception of Playwright is introducing, could you kindly advise?

Iā€™m sorry there were example. You can see it here on
34th line

Thanks for your update

did you try the code before for the line 34 as below:

I.usePlaywrightTo('do intercept', async ({ Playwright }) => {

yes I did. Works great! Any problems with implementation?

I replied to the wrong person, ignore my message please.

1 Like