2011-03-30 111 views

回答

16
page.should have_selector('table tr', :count => 3) 

你也可以做到最小或最大

page.should have_selector('table tr', :minimum => 3)