I am trying to click on element with this code:
test('no existed user try', async() => {
await page.click($x('//*[contains (text(), "people")]'))
})
It returns me an error $x is not a function
how to use xpath correct with click ?
I am trying to click on element with this code:
test('no existed user try', async() => {
await page.click($x('//*[contains (text(), "people")]'))
})
It returns me an error $x is not a function
how to use xpath correct with click ?
test('no existed user try', async() => {
const elements = await page.$x('//*[contains (text(), "people")]');
await elements[0].click();
});