I enjoy clicking on links that are within a div tag. Below is the HTML code for reference:
<div class="m7"><div class="mB k7"></div><div class="mB l7"></div></div><span style="-moz-user-select: none;" role="button" class="d-s aj mqa" tabindex="0"><div class="yl kH"></div><div class="dv">Link</div></span>
In my vb.net Application, I implemented the following code:
webControl1.ExecuteJavascript("document.getElementsByClassName('dv')[0].click();")
However, the link does not respond and the expected popup does not appear. Interestingly, when running this code in the Firefox developer console, it functions correctly. This suggests that there may be an issue with Awesomium rather than the getElementsByClassName selection.
If anyone can offer assistance, it would be greatly appreciated.
Thank you
Cheers