1

I'm new in Watir and Ruby, and I've encountered a problem that needs solving. Is it possible to check if there is any audio after clicking a play button on a track list?

Here's my code:

require 'rspec'
describe "CA" do
  include_context "firefox browser"
    it 'TRACK PLAYBACK' do
      browser.goto MyUrl
      browser.link(:href => '/rock').when_present.click
      browser.a(:class => "album-image").fire_event 'mouseover'
      browser.div(:class, "play-button play-stop-button with-art").when_present.click
#     is there any audio output during playback?  
    end
end
orde
  • 5,233
  • 6
  • 31
  • 33
Crow
  • 11
  • 1
  • I'm curious how the audio is played (e.g. embedded player?). Can you post the HTML? – orde Jan 27 '16 at 04:25
  • You'll probably end up using javascript to do this...similar question here: http://stackoverflow.com/questions/9437228/html5-check-if-audio-is-playing – boulder_ruby Jan 28 '16 at 17:27

0 Answers0