Im working with playwright and i need to inject an onclick function on an html element.
I have this example where i remove the element.
const elementHandle = await page.$('#ctl00_ContentPlaceHolder1_lbl_Val_Tomador');
await elementHandle.evaluate(node => node.remove());
So, which function do i need to run to inject the onclick on this element?