within()
Search relative HTML elements with this relativeSelector. An element is considered within a reference element, only if the element’s bounding box is in range of reference element.
Examples
Section titled “Examples”await click(link("Block", within("name"))Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
selector | selector | string | Web element selector. |
Returns
Section titled “Returns”| Type | Description |
|---|---|
| RelativeSearchElement | . |