Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Grant-Archibald-MS opened this issue Jun 7, 2024 · 1 comment
Open

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

Grant-Archibald-MS opened this issue Jun 7, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Grant-Archibald-MS
Copy link
Contributor

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

  • Navigate to a page
  • Wait for a locator to exist
  • Click a matching locator
  • Check if locator exists

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
Copy link

Please signoff when this is in the integration branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants