[docs]: add docs for `page.waitForSelector()`
Merged
SE
10mo ago+89+89+01234567890123456789-1-1-0123456789
why
missing docs for new page.waitForSelector()
what changed
Add API reference documentation for page.waitForSelector() method including:
- Method signature and parameter descriptions
- All options: state, timeout, pierceShadow
- Code examples for various use cases
test plan
Summary by cubic
Adds API reference for page.waitForSelector(), with options, defaults, and practical examples. Addresses STG-1125 by filling the missing docs.
- New Features
- Method signature and parameters: state, timeout, pierceShadow.
- Notes on defaults: state "visible", 30s timeout, shadow DOM piercing; supports iframe hop (>>).
- Examples for visible/hidden/detached, iframe, shadow DOM, XPath, and custom timeouts.