remotelocal / web

0 stars 0 forks source link

Capybaraのshould have_contentで Ambiguous match, found 2 elements matching xpath "/html" #75

Closed remotelocal closed 9 years ago

remotelocal commented 9 years ago

http://stackoverflow.com/questions/16977049/capybara-ambiguous-match-should-have-content

remotelocal commented 9 years ago

try adding a save_and_open_page in your spec to see what the HTML actually looks like

remotelocal commented 9 years ago

あー、コンテンツがんがん削っていってどこでPASSするかを見ていけば分かりそうだなー。

remotelocal commented 9 years ago

これくさいな。 ギットハブ/jnicklas/capybara/issues/

881

remotelocal commented 9 years ago

htmlが閉じた後にBODYタグがあったのが原因。