perhaps have manage bad html programming (check here).
in below code <i>
doesnt represent word in italics icon. want click watir
suitable this?
i went this post , tried button
, image
methods none worked.
i tried creating page object
(as way want be).
button(:attendees_list, :title => 'attendees')
, image(:attendees_list, :title => 'attendees')
used on(upcomingwebinarpage).attendees_list
<a class="webinar" href="javascript:;"> <i class="icon" title="attendees"></i> <span class="number">12</span> </a>
in page-object
, you'd want create generic element. because strange case, use xpath identify it.
element(:attendees_list, :i, xpath: "//i[@title='attendees']")
and click with:
page.attendees_list_element.click
Comments
Post a Comment