Sha256: da4123319ba94acea3e4f3335e24642e0065037b348ef82bbcde1040dcc2f687

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

class FramePage
  include PageObject
end

Given /^I am on the frame elements page$/ do
  @page = FramePage.new(@browser)
  @page.navigate_to(UrlHelper.frame_elements)
end

When /^I switch to a frame using id "([^"]*)"$/ do |id|
  @page.switch_to_frame(id)
end

Then /^I should see "([^"]*)" in the frame$/ do |text|
  @page.text.should include text
end

When /^I switch to a frame using index "([^"]*)"$/ do |index|
  @page.switch_to_frame(index.to_i)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
page-object-0.2.1 features/step_definitions/frames_steps.rb