Sha256: 677d7c6d0de37fe1d2466a2e4fda6f4cc509368770e362ffd97f8e3048bb4a2d

Contents?: true

Size: 774 Bytes

Versions: 41

Compression:

Stored size: 774 Bytes

Contents

When /^I search for the audio element by "([^\"]*)"$/ do |how|
  @element = @page.send "audio_#{how}_element"
end

When /^I search for the audio element by "([^"]*)" and "([^"]*)"$/ do |param1, param2|
  @element = @page.send "audio_#{param1}_#{param2}_element"
end

Then /^I should know the audio is not autoplay$/ do
  @element.should_not be_autoplay
end

Then /^I should know that the controls are displayed$/ do
  @element.should have_controls
end

Then /^I should know that the audio is paused$/ do
  @element.should be_paused
end

Then /^I should know that the duration is greater than (\d+) seconds$/ do |duration|
  @element.duration.should > duration.to_f
end

Then /^I should know that its volume is (\d+)$/ do |volume|
  @element.volume.should == volume.to_i
end

Version data entries

41 entries across 41 versions & 4 rubygems

Version Path
page_object-1.1.3 features/step_definitions/audio_steps.rb
page_object-1.1.2 features/step_definitions/audio_steps.rb
page_object-1.1.1 features/step_definitions/audio_steps.rb
page-object-1.1.0 features/step_definitions/audio_steps.rb
page-object-lds-0.0.14 features/step_definitions/audio_steps.rb
page-object-lds-0.0.13 features/step_definitions/audio_steps.rb
page-object-lds-0.0.12 features/step_definitions/audio_steps.rb
page-object-lds-0.0.11 features/step_definitions/audio_steps.rb
page-object-lds-0.0.1 features/step_definitions/audio_steps.rb
page-object-1.0.3 features/step_definitions/audio_steps.rb
meeane-page-object-0.1.11 features/step_definitions/audio_steps.rb
page-object-1.0.2 features/step_definitions/audio_steps.rb
page-object-1.0.1 features/step_definitions/audio_steps.rb
page-object-1.0 features/step_definitions/audio_steps.rb
page-object-0.9.8 features/step_definitions/audio_steps.rb
page-object-0.9.7 features/step_definitions/audio_steps.rb
page-object-0.9.6 features/step_definitions/audio_steps.rb
page-object-0.9.5 features/step_definitions/audio_steps.rb
page-object-0.9.4 features/step_definitions/audio_steps.rb
page-object-0.9.3 features/step_definitions/audio_steps.rb