Skip to content

$()

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

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' })
NameTypeDescription
attrValuePairsunknown
_optionsObjectDefault: {}.
argsrelativeSelectorProximity selectors
selectorstringXPath or CSS selector or Function.
TypeDescription
DollarWrapper