Sha256: edfc0958c884ff281dff55d2df5b3ea2bcc404cbdd1f58d85bcd5ebc2cb5d1ec
Contents?: true
Size: 907 Bytes
Versions: 1
Compression:
Stored size: 907 Bytes
Contents
Given(/^I verify element attribute is (present|absent)$/) do |state| wo = WebObjectFormPage.new(@driver) state=="present" ? flag="color: red;" : flag="" expect(wo.toggle_attribute_button.attribute('style')).to eq flag end Then(/^I wait for attribute to be (present|absent)$/) do |state| wo = WebObjectFormPage.new(@driver) wo.wait_for_attribute(state) end Given(/^I verify element attribute value is (set|empty)$/) do |state| wo = WebObjectFormPage.new(@driver) state=="set" ? flag="background: yellow" : flag="" expect(wo.empty_attribute_button.attribute('style')).to include flag end Then(/^I wait for attribute value to be (set|empty)$/) do |state| wo = WebObjectFormPage.new(@driver) wo.wait_for_attribute_value(state) end Then(/^I wait for attribute to be (match|contain) value$/) do |action| wo = WebObjectFormPage.new(@driver) wo.wait_for_attribute_value_match(action) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
web-object-0.3 | features/step_definitions/element_property_steps.rb |