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'))
$(() => {return document.querySelector('#foo');})
$((selector) => document.querySelector(selector), { args: '#foo' })
$((selector) => document.getElementById(selector), { args: 'foo' })

Parameters


selector

XPath or CSS selector or Function.


_options

args relativeSelector

Proximity selectors


Returns

DollarWrapper