Using Playwright
and Python
, how can I expect for count bigger or smaller than?
For example, this code expect for count of 2.
How do I achieve count > 2 or count <=2
expect(self.page.locator('MyLocator')).to_have_count(2, timeout=20 * 1000)
from How to expect count bigger or smaller than?
No comments:
Post a Comment