playwright-python icon indicating copy to clipboard operation
playwright-python copied to clipboard

[Feature] support `|` and `&` operator for `Locator.or_` and `Locator.and_`

Open DetachHead opened this issue 2 years ago • 2 comments

https://github.com/microsoft/playwright-python/pull/1882#issuecomment-1532914149

DetachHead avatar May 03 '23 12:05 DetachHead

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.

KotlinIsland avatar May 03 '23 22:05 KotlinIsland

Also a & (__and__) implementation for and_.

KotlinIsland avatar May 28 '23 03:05 KotlinIsland