Hello guys i need help to solve this, im trying to make a automation to login in Nike BR website (that is different from the others), but everytime that i reload the page the xpath keeps changing anyone could help me with this problem? appreciate you guys the website is https://www.nike.com.br/ you need to click in "Login / Inscreva-se" then the inputs will load
const puppeteer = require ('puppeteer');
const login = '//*[@id="anchor-acessar-unite-oauth2"]';
const emailinput = 'changing xpath'
const passwordinput = 'changing xpath'
(async () => {
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();
await page.setViewport({ width: 1920, height: 1080});
await page.goto ('https://www.nike.com.br');
const login= await page.waitForXPath('//*[@id="anchor-acessar-unite-oauth2"]');
await login.click();
const emailinput = await page.type('changing xpath', 'myEmail@outlook.com', { delay: 110 });
const passwordinput = await page.type('changing xpath', 'myEmail@outlook.com', { delay: 110 });
})();