Installing Playwright into Framework
In order to use Playwright simply install Playwright public page object into your framework.
The Playwright page objects offers a few methods you may use:
Using Playwright in a Test Case
Before using Playwright you need to open or reconnect to automated browser using Navigator.Open.
Then run the code:
function Click()
{
Playwright.DoInvoke(async ({page,expect})=>{
await page.getByText('Link Button', { exact: true }).click();
});
}
Everything inside the callback function is native Playwright code.