Taiko
Documentation

Home / API Reference

$

This selector lets you identify elements on the web page via XPath or CSS selector and proximity selectors.

Examples

await highlight($(`//*[text()='text']`))
await $(`//*[text()='text']`).exists()
$(`#id`,near('username'),below('login'))

Parameters


selector

XPath or CSS selector.


_options

_options.selectHiddenElements boolean

Option to include hidden elements.

Default value
false

args relativeSelector

Proximity selectors


Returns

ElementWrapper