'what should the code of the SelectorAll + xPath document look like?

what should the code of the SelectorAll + xPath document look like?
Bellow my actually code, but not working:

 const resultPagination = await page.evaluate(() =>
      Array.from(
        document.querySelectorAll(
          `[//*[@id="__next"]/div[2]/main/div[1]/div[3]/div[1]/div[2]/div[1]/div/ul/li[1]/a]`
        ),
        (element) => parseInt(element.textContent)
      )
    );


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source