Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のページには Twitter-Bootstrap によるタブペインがあります。「/pages/1#some_tab」のようなページを取得して「some_tab」タブペインが開いていることをカピバラでテストするにはどうすればよいですか?
page.has_selector?('div', :text => 'something in my tab', :visible => true)
重要なのは、visible => true オプションを追加することです。