Playwright · Method
locator.visible
locator.visible narrows a locator to visible elements. Use it before an action when the original locator also matches hidden elements.
Last updated
- Since
- v1.51
Syntax
locator.visibleIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
locator.filterlocator.clicklocator.locatorpage.get_by_rolepage.get_by_text