Sha256: f324ad9ac73790a9e6ed5348439f0b925624a0814647a0484f7112e9365915af
Contents?: true
Size: 662 Bytes
Versions: 4
Compression:
Stored size: 662 Bytes
Contents
require 'spec_helper.rb' describe PhantomRubyBrowser do let(:browser){ PhantomRubyBrowser.new("file://#{File.expand_path('spec/support/test_page_1.html')}") } describe 'open page' do it 'loads phantomjs' do expect(browser.phantomjs.path).not_to be_nil end it 'html' do expect(browser.content).not_to be_nil expect(browser.content).to include 'First test page' end it 'with javascript' do expect(browser.content).to include 'javascript_loaded' end end describe 'click' do it 'follow normal link' do expect(browser.content_after_click('p > a')).to include 'Second test page' end end end
Version data entries
4 entries across 4 versions & 1 rubygems