Preview.PlaywrightAction(Locator, Action)
Preview.PlaywrightAction(Url, Action)
This use the locators or Url to apply an action to the current web page.
When selecting actions that require a locator you can make use of CSS Selectors or XPath queries.
Locators for web pages are based on Playwright locators. More information on locators is available from Playwright documentation.
Playwright also supports experimental React and vue base selectors that can be useful for selecting elements on code first extensions like PCF controls within a Power App.
The following actions are supported
| Action | Description |
|---|---|
| click | Select matching locator items |
| exists | Returns True or False is locator exist |
| navigate | Navigate to the url |
| wait | Wait for locator items to exist |
Preview.PlaywrightAction("//button", "click")
Assert(Preview.PlaywrightAction("//button", "exists") = true)
Preview.PlaywrightAction("https://www.microsoft.com", "navigate")
Preview.PlaywrightAction("//button", "wait")