'Playwright eval javascript in context of iframe window
I have a sandbox on my page that I'm trying to run some tests in.
const iframe = await page.frameLocator('#scripting-sandbox');
iframe.evaluate(test.toString())
This obviously doesn't work, iframe has no method evaluate. What's the correct way to accomplish this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
