[QUESTION]
Closed this issue · 0 comments
JorgeBrandao1980 commented
My question is:
Tthe html DIV element, it doesn't have the CLICK event set.
Exemple Html:
<div class="bdp "><a id="ctl00_ctl00_NestedMasterPage_divTexto_LinkButtonAT_2" href="javascript:__doPostBack('ctl00$ctl00$NestedMasterPage$divTexto$LinkButtonAT_2','')"> </a></div>
(html.querySelector(
'#ctl00_ctl00_NestedMasterPage_divTexto_LinkButtonAT_2') as Element)
.click();
The CLICK event doesn't work on DIV elements.
And sometimes it's necessary to do this, especially when that element has inserted a hyperlink.
Thank you, for your work