im trying to use puppeteer to get property content of an element, edit it and run the edited version. For example: There is this element:
<a href="#" onclick="mojarra.jsfcljs(document.getElementById('j_idt58'),{'j_idt58:j_idt201:0:j_idt203':'j_idt58:j_idt201:0:j_idt203'},'_blank');return false" class="btn btn-info"></a>
What I need is to get the onclick content, remove the _blank parameter and run the rest of the function... Any ideas?