Sha256: 7dd675f8b312e7c29b7514e4d1b92e5d4d9c7ebeb5022c97c457b5d4fbf69ea6
Contents?: true
Size: 816 Bytes
Versions: 7
Compression:
Stored size: 816 Bytes
Contents
# frozen_string_literal: true Capybara::SpecHelper.spec '#title' do it 'should get the title of the page' do @session.visit('/with_title') expect(@session.title).to eq('Test Title') end context 'with css as default selector' do before { Capybara.default_selector = :css } it 'should get the title of the page' do @session.visit('/with_title') expect(@session.title).to eq('Test Title') end after { Capybara.default_selector = :xpath } end context 'within iframe', requires: [:frames] do it 'should get the title of the top level browsing context' do @session.visit('/within_frames') expect(@session.title).to eq('With Frames') @session.within_frame('frameOne') do expect(@session.title).to eq('With Frames') end end end end
Version data entries
7 entries across 7 versions & 2 rubygems