Perhaps I have to manage with bad HTML programming (check here).
In below code <i>
doesnt represent a word in italics but an icon. Which I want to click but which WATIR
is suitable for this?
I went to this post and I tried button
and image
methods but none worked.
I tried it by creating its page object
(as it is the way I want it to be).
button(:attendees_list, :title => 'attendees')
and image(:attendees_list, :title => 'attendees')
used it as
on(UpcomingWebinarPage).attendees_list
<a class="webinar" href="javascript:;">
<i class="icon" title="attendees"></i>
<span class="number">12</span>
</a>