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.