简体   繁体   中英

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'

The correct pluralization is "addresses".

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM