79084065

Date: 2024-10-13 20:17:49
Score: 1
Natty:
Report link

Or can I click just name which is "MIKE CHASE (12345086)"? I code this:

const link1 = await page.evaluateHandle(
      text => [...document.querySelectorAll('span')].find(span => span.innerText ===  'MIKE CHASE (12345086)')
);
          await link1.click();

It seems ok, its clicked, but another name gonna error, for example '___MIKE CHASE (12345086)' and error message is:

          await link1.click();
                      ^

TypeError: link1.click is not a function

How I can through this error? Because I wanna pass through it if the name is match.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yuki Matuzaki