Sha256: df08db61d26eb2d1563479fe179eb854f639886871316f5f24d3aef39444aba8
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
Then(/^the page should contain the text "(.*?)"$/) do |text| expect(@page.text).to include text end Then(/^the page should contain the html "(.*?)"$/) do |html| expect(@page.html).to include html end Then(/^the page should have the title "(.*?)"$/) do |title| expect(@page.title).to include title end Then(/^I am able to go to baidu\.com$/) do @page.goto end Given(/^I can goto baidu\.com by default$/) do @page = Page.new(@driver) @page.goto end Given(/^I can goto baidu\.com using visit_page without block$/) do visit_page(Page) # @page = visit_page Page end Then(/^the page should have the title "(.*?)" using on_page without block$/) do |text| expect(on_page(Page).title).to include text # expect(on_page(@page).title).to include text end Given(/^I can goto baidu\.com using visit_page with block$/) do visit_page(Page) do |page| expect(page.title).to include "百度" end # @page = visit_page Page do |page| # expect(page.title).to include "百度" # end end Then(/^the page should have the title "(.*?)" using on_page with block$/) do |text| on_page(Page) do |page| expect(page.title).to include text end # on_page(@page) do |page| # expect(page.title).to include text # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-0.0.1 | features/step_definations/page_level_actions_steps.rb |