Sha256: 68b0d6c14f17c3014733ec741727654cb53eba81844b40855c78e41dd5d5972e
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
And(/^I verify text is (absent|present)$/) do |state| wo = WebObjectFormPage.new(@driver) if state=="present" expect(wo.body_element.text).to include "This Link was recently added into DOM" else expect(wo.body_element.text).not_to include "This Link was recently added into DOM" end end Then(/^I wait for text to be (present|absent)$/) do |state| wo = WebObjectFormPage.new(@driver) wo.wait_for_text_presence("This Link was recently added into DOM") end And(/^I verify text is (absent|present|included) inside element$/) do |state| wo = WebObjectFormPage.new(@driver) if state=="present" expect(wo.toggle_presence_div.text).to include "This Link was recently added into DOM" elsif state == "included" expect(wo.toggle_presence_div.text).to include "This Link was recently added into DOM" else expect(wo.toggle_presence_div.text).not_to include "This Link was recently added into DOM" end end Then(/^I wait for text to be (present|included|contained) inside element$/) do |state| wo = WebObjectFormPage.new(@driver) wo.wait_for_text_in_element(state, wo.toggle_presence_div, "This Link was recently added into DOM") end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
web-object-0.5 | features/step_definitions/text_steps.rb |
web-object-0.4 | features/step_definitions/text_steps.rb |