You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes when writing tests, I want to click the nth result of a selector. I can accomplish this using playwright using the nth selector; is there an equivalent way to to do this using pilot.click? Could that method be updated so that the selector could be the result of a query perhaps?
The text was updated successfully, but these errors were encountered:
Totally agree w/ just using an item in the list instead of a special method.
However, when I try to click an instance of a button, not a query string, I get an error:
AttributeError: 'Button' object has no attribute '__name__'. Did you mean: '__ne__'?
The docstring for pilot.click says it allows for type[Widget] | str | None, but not a Widget - it doesn't appear to be supported? As a workaround, is there a query selector like nth-of-type that I could use to get the first one?
Sometimes when writing tests, I want to click the nth result of a selector. I can accomplish this using playwright using the nth selector; is there an equivalent way to to do this using pilot.click? Could that method be updated so that the selector could be the result of a query perhaps?
The text was updated successfully, but these errors were encountered: