Sha256: da7ef3fc1f6ae581d029c10198606d5f336c2c57259ec585a3e9146bc46e3b6d

Contents?: true

Size: 506 Bytes

Versions: 17

Compression:

Stored size: 506 Bytes

Contents

def success

end

Then /^I should be able to wait until it is present$/ do
  @element.when_present do
    success
  end
end

Then /^I should be able to wait until it is visible$/ do
  @element.when_visible do
    success
  end
end

Then /^I should be able to wait until it is not visible$/ do
  begin
    @element.when_not_visible do
      fail
    end
  rescue
    success
  end
end

Then /^I should be able to wait until a block returns true$/ do
  @element.wait_until do
    @element.visible?
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
page-object-0.5.3 features/step_definitions/async_steps.rb
page-object-0.5.2 features/step_definitions/async_steps.rb
page-object-0.5.1 features/step_definitions/async_steps.rb
page-object-0.5.0 features/step_definitions/async_steps.rb
page-object-0.4.4 features/step_definitions/async_steps.rb
page-object-0.4.3 features/step_definitions/async_steps.rb
page-object-0.4.2 features/step_definitions/async_steps.rb
page-object-0.4.1 features/step_definitions/async_steps.rb
page-object-0.4.0 features/step_definitions/async_steps.rb
page-object-0.3.2 features/step_definitions/async_steps.rb
page-object-0.3.1 features/step_definitions/async_steps.rb
page-object-0.3.0 features/step_definitions/async_steps.rb
page-object-0.2.5 features/step_definitions/async_steps.rb
page-object-0.2.4 features/step_definitions/async_steps.rb
page-object-0.2.3 features/step_definitions/async_steps.rb
page-object-0.2.2 features/step_definitions/async_steps.rb
page-object-0.2.1 features/step_definitions/async_steps.rb