Locate & inspect
Task-first recipes for locate & inspect.
Extract text from matching elements
Read every match of one locator into a PHP array, then iterate over it.
Read a table row by its text
Find the one row that contains a known value, then act inside it.
Get an attribute or input value
Read an attribute, a form field value, or an element's text into a PHP variable.
Interact inside an iframe
Scope a locator to a frame with frameLocator, then act and assert inside it.
Pierce the shadow DOM
Standard locators reach into open shadow roots, so web components need no special selector.