Welcome Guest Search | Active Topics | Sign In | Register

how to click html elements on window form? Options
tuan
Posted: Sunday, November 23, 2014 7:57:40 PM
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!
eo_support
Posted: Monday, November 24, 2014 9:45:15 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
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#evalscript

Thanks!
tuan
Posted: Tuesday, November 25, 2014 1:03:24 AM
Rank: Member
Groups: Member

Joined: 10/9/2014
Posts: 19
where's auto click even?
eo_support
Posted: Tuesday, November 25, 2014 11:33:26 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.