microsoft / PowerApps-TestEngine

MIT License
106 stars 30 forks source link

[Feature]: Access Playwright Actions using Power Fx #337

Open Grant-Archibald-MS opened 4 months ago

Grant-Archibald-MS commented 4 months ago

Is your feature request related to a problem? Please describe.

There are times where need to interact with the Playwright page to perform actions on parts of the page. For example, interact with elements inside a component or a PCF control.

Describe the solution you'd like

Provide a module to leverage playwright locator model to apply common actions. For example, consider the following actions

Expose these actions as Power Fx actions that can be included in testSteps. For example, add support scenarios similar to the following:

TestEngine.PlaywrightAction("//button", "click"); TestEngine.PlaywrightAction("//button", "wait");

Describe alternatives you've considered

Could make use of PlaywrightScript() however makers may not have code first skills and would require a Power Fx function to allow interaction with the test page.

Additional context?

No response

pvillads commented 4 months ago

Please signoff when this is in the integration branch