I like to click on a div tag link. Here is the HTML code:
<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>
I used this code on my vb.net Application:
webControl1.ExecuteJavascript("document.getElementsByClassName('dv')[0].click();")
But it does not click and the popup is not opened. When I execute the code in developers console in my firefox browser it works pretty well. So it is not the getElementsByClassName selection that does not work it is Awesomium that does not work here.
Please help me.
Thanks
Cheers
It is not possible, because Awesomium is outdated. It was a problem of Awesomium.
So result is: switch to cefSharp (chrome browser) or to GeckoFX-45 (Firefox) Bot are free. There is also a further developed Awesomium named DotNetBrowser but it is >1000$ per license.