x
Main Site login Signup

can't click on span element

Need to auto click in span element and it works in google chrome but not with awesomium web control.

 //jquerify
 
 webcontrol1.ExecuteJavascript("var s=document.createElement('script');");
             webcontrol1.ExecuteJavascript("s.setAttribute('src','http://code.jquery.com/jquery.js');");
             webcontrol1.ExecuteJavascript("document.getElementsByTagName('body')[0].appendChild(s);");
 
 webcontrol1.ExecuteJavascript("$('span:contains(Like)').click());");
 


it works also with another type of elements like button element. I read about using document.evaluate but didn't get how to make it work.

asked Oct 29, 2016 at 01:59 AM avatar image Meonline 0
more ▼
(comments are locked)
10|1100 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.