2011-12-22 17 views

回答

1

docs

all('a').each { |a| a[:href] } 

因此,像下面應該是可能的:

all('span.error').count.should == 5