Help to find Dynamic xpath

Asked

Viewed 14 times

0

Good evening guys, I’m having a hard time finding Dynamic xpath in the email and login part of the nike.com.br website, I’ve tried several extensions, but the xpath they find always change when they refresh the page.

  • Buttons I need the Dynamic xpath: https://prnt.sc/y73k3v

I have tried to do in many ways the mistakes consist of:

Failed to execute 'querySelector' on 'Document, (... is not a Valid selector)

and

Cannot read Property 'type' of Undefined

         //LOGIN
const [txtUserName] = await page.$x('/html[1]/body[1]/div[2]/div[3]/div[6]/form[1]/div[2]/input[1]');
   await txtUserName.type("[email protected]");
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.