playwright-python
playwright-python copied to clipboard
[Feature] support `|` and `&` operator for `Locator.or_` and `Locator.and_`
https://github.com/microsoft/playwright-python/pull/1882#issuecomment-1532914149
And for Kotlin an infix function would be great
infix fun or(locator: Locator): Locator {
Usage like
Locator("") or Locator("")
But I guess this point would be better served in the playwright-java repo.
Also a & (__and__) implementation for and_.