Menu
  • HOME
  • TAGS

RSpec/Capybara testing have_selector conundrum

ruby-on-rails,rspec,tdd,capybara,bdd

Try: expect(page).to have_selector('title', :text => "Ruby on Rails Tutorial Sample App | Home", :visible => false) Since the title tag is in <head> element, it is considered hidden. Specifying :visible => false includes those tags for consideration in the have_selector matcher....

Capybara::ElementNotFound for AJAX populated