Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 1.31 KB

File metadata and controls

36 lines (21 loc) · 1.31 KB

Preview.PlaywrightAction

Preview.PlaywrightAction(Locator, Action)

Preview.PlaywrightAction(Url, Action)

This use the locators or Url to apply an action to the current web page.

Locators

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.

Actions

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

Examples

Preview.PlaywrightAction("//button", "click")

Assert(Preview.PlaywrightAction("//button", "exists") = true)

Preview.PlaywrightAction("https://www.microsoft.com", "navigate")

Preview.PlaywrightAction("//button", "wait")