79276695

Date: 2024-12-12 21:50:49
Score: 1
Natty:
Report link

Got it figured out I was calling the evaluate on the button it needs to be called on Page object with the reference passed of button element

try{
    await popupPage.evaluate(button => button.click(), connectButton);
console.log('Connect button clicked.');
await delay(5000);

}
catch(error){
    console.log('Error clicking connect button:', error);
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Muhammad Ahmer Raza