Sha256: 6062a3ef96f2f9f08fc4c4e43aaffa4c96945868b8770b391af9d48a51c7a48d

Contents?: true

Size: 506 Bytes

Versions: 37

Compression:

Stored size: 506 Bytes

Contents

When /^I set the file field to the step definition file$/ do
  @page.file_field_id = __FILE__
end

Then /^its\' value should equal that file$/ do
  @page.file_field_id_element.value.should == __FILE__
end

When /^I search for the file field by "([^\"]*)"$/ do |how|
  @how = how
end

When /^I search for the file field by "([^\"]*)" and "([^\"]*)"$/ do |param1, param2|
  @how = "#{param1}_#{param2}"
end

Then /^I should be able to set the file field$/ do
  @page.send "file_field_#{@how}=", __FILE__
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
page-object-0.7.4 features/step_definitions/file_field_steps.rb
page-object-0.7.3 features/step_definitions/file_field_steps.rb
page-object-0.7.2 features/step_definitions/file_field_steps.rb
page-object-0.7.1 features/step_definitions/file_field_steps.rb
page-object-0.7.0 features/step_definitions/file_field_steps.rb
page-object-0.6.9 features/step_definitions/file_field_steps.rb
page-object-0.6.8 features/step_definitions/file_field_steps.rb
page-object-0.6.7 features/step_definitions/file_field_steps.rb
page-object-0.6.6 features/step_definitions/file_field_steps.rb
page-object-0.6.5 features/step_definitions/file_field_steps.rb
page-object-0.6.4 features/step_definitions/file_field_steps.rb
page-object-0.6.3 features/step_definitions/file_field_steps.rb
page-object-0.6.2 features/step_definitions/file_field_steps.rb
page-object-0.6.1 features/step_definitions/file_field_steps.rb
page-object-0.6 features/step_definitions/file_field_steps.rb
page-object-0.5.5 features/step_definitions/file_field_steps.rb
page-object-0.5.4 features/step_definitions/file_field_steps.rb