Is there any Playwright equivalent for waitForResource in CasperJS? How can I write the below code using Playwright?
casper.waitForResource(function test(resource) {
return resource.url.indexOf("submit") > -1;
}
Is there any Playwright equivalent for waitForResource in CasperJS? How can I write the below code using Playwright?
casper.waitForResource(function test(resource) {
return resource.url.indexOf("submit") > -1;
}
Copyright © 2021 Jogjafile Inc.
You can use
page.waitForRequest():This will pause the execution until a request is made that contains the string "submit" in its URL.