Are we able to use the Playwright request interception and mocking capabilities in Codeceptjs?
hey! of course you can! check this example
@Alexander
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
@Alexander
Thanks for your update
@Alexander
did you try the code before for the line 34 as below:
I.usePlaywrightTo('do intercept', async ({ Playwright }) => {
await Playwright.context.page.route(...)
yes I did. Works great! Any problems with implementation?
@Alexander
I replied to the wrong person, ignore my message please.
1 Like