Skip to content

relativeSelector()

Lets you perform relative HTML element searches.

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
Name Type Description
selector selector | string Web element selector.
Type Description
RelativeSearchElement .