relativeSelector()
Lets you perform relative HTML element searches.
Examples
near('Home')
toLeftOf('Sign in')
toRightOf('Get Started')
above('Sign in')
below('Home')
link('Sign In',near("Home"),toLeftOf("Sign Out")) - Multiple selectors can be used to perform relative search
Parameters
| Name | Type | Description |
|---|---|---|
selector |
selector | string | Web element selector. |
Returns
| Type | Description |
|---|---|
| RelativeSearchElement | . |