I need to be able to get a count of the number of h2 headers on a
page.
I can determine if a specific header exists by doing
@browser.h2(:text, "Abc").exists?
but everything I've tried to get a count of the number of headers
gives me the following error --
"wrong number of arguments <0 for 1>"
I've tried
@browser.h2.find_all
@browser.h2.count
@browser.h2.length
@browser.h2.all.size
I even tried @browser.html.scan(:html, "h2").size but it returned 0
and I know there are at least 5 h2 headers on the page...
html for a typical h2 header looks like this --
<h2>Customer Service</h2>
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]