1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Selenium is too inconsisten with attribute values

This commit is contained in:
Jonas Nicklas 2010-08-24 12:37:13 +02:00
parent b6798ece30
commit 1e1c79f3c2

View file

@ -40,11 +40,8 @@ shared_examples_for 'driver' do
end
it "should extract node attributes" do
@driver.find('//a')[0][:href].should == '/with_simple_html'
@driver.find('//a')[0][:class].should == 'simple'
@driver.find('//a')[1][:href].should == '/foo'
@driver.find('//a')[1][:id].should == 'foo'
@driver.find('//a')[1][:rel].should be_nil
end
it "should extract boolean node attributes" do