Capybaraでlinkでもbuttonでもないtextをクリックする方法

f:id:ihatov08:20160905184757j:plain

Clicking elements that are not links or buttons. · Issue #1200 · teamcapybara/capybara · GitHub

xpathで指定する

find(:xpath,"//*[text()='テキスト']").click

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です