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]: #253

Open
1 of 2 tasks
imoldfella opened this issue Jan 28, 2023 · 1 comment
Open
1 of 2 tasks

[FEATURE]: #253

imoldfella opened this issue Jan 28, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@imoldfella
Copy link

Description

Appearance.Of creates a problem supporting playwright. Appearance.Of asks for a single element (driver.FindElement), but in selenium this apparently is really "find any". This violates strict mode which is a compelling feature of Playwright that if you ask for 1 element and in fact there are more than one element that matches, it throws an exception.

Alternatives

I think Appearance.Of could be changed to a count > 0 without breaking existing code, but hyrum's law suggests otherwise. Maybe a new Question needs to be posed.

The playwright driver could be forced to turn off strict mode, but this disables a useful feature.

Anything else?

No response

Commitments

  • I agree to follow Boa Constrictor's Code of Conduct.
  • I want to work on this issue myself. (This is voluntary, not required.)
@imoldfella imoldfella added the enhancement New feature or request label Jan 28, 2023
@AutomationPanda
Copy link
Contributor

We haven't yet made any progress on a Playwright package (unfortunately), but our initial thoughts for it were twofold:

  1. We would create a light, "native" package that provides a Playwright Ability but not much more. Folks would focus on making custom Tasks and Questions since Playwright's methods already have built-in waiting.

  2. For folks who would want to easily port tests from Selenium to Playwright, we would implement another package that would essentially be a Playwright adapter for the WebDriver Interactions. If any of those Interactions don't work or make sense for Playwright, then we could potentially exclude them or make them throw an exception. (Design TBD)

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