|
Rank: Member Groups: Member
Joined: 10/9/2014 Posts: 19
|
This control is very different from control ie the visual ! I do not know where to start to solve my problem !
i have a html code:
<a class="_42ft _4jy0 rfloat _ohf _4jy3 _517h _51sy" rel="async" ajaxify="/ajax/pages/recommendations/composer?id=469771299752946&ref=finch_review_card" href="#" role="button">Write Review</a>
and
<a class="emptyStar" role="button" aria-label="Excellent" href="#"></a>
and
<button id="u_f_4" class="_42ft _4jy0 layerConfirm _4jy3 _517h _51sy" type="submit" value="1" style="opacity: 1;">Done</button>
how to click 3 click it on eo web control?
example for ie control:
HtmlElementCollection eles = webwordpress.Document.GetElementsByTagName("A"); foreach (HtmlElement btn in eles) { if (btn.InnerText=="abc") { btn.InvokeMember("Click"); }
}
thanks for help!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, In EO.WebBrowser you need to do most of such works through JavaScript. Please see here for more details: http://www.essentialobjects.com/doc/6/advanced/js.aspx#evalscriptThanks!
|
|
Rank: Member Groups: Member
Joined: 10/9/2014 Posts: 19
|
where's auto click even?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
You need to find out how to do that with JavaScript and then call EvalScript to do it. JavaScript is the language of web pages and it is already extremely flexible and powerful. So we do not provide another layer of wrapper around it. You can search online for how to automatically click a button with JavaScript and you should be able to find plenty of information about it.
Thanks!
|
|