Search code examples
rubyseleniumwatirwatir-webdriver

How do I pluralize the <address> tag in Watir-Webdriver?


In watir-webdriver you can do the following to collect all instances of an <a> tag:

browser.as(:class => 'foo').text

However, when I try this on an <address> tag like so

browser.addresss(:class => 'foo').text

I get the following error:

undefined method `addresss'

Solution

  • The correct pluralization is "addresses".

    You can find just about all the tags by looking at the ruby doc for Container.