Reputation: 11107
I'm testing audio tags in my Capybara tests. I'm using the poltergeist driver with PhantomJS. The problem is that the PhantomJS team resoundingly stated they have no plans to support HTML5 media elements such as <audio>
or <video>
. This is problematic as I need to test this audio player for a features test. Because of this, I need to replace the poltergeist driver. What driver alternatives exist? Could I by any chance run one driver for the audio tests and then run poltergeist for the other tests?
Upvotes: 1
Views: 189
Reputation: 49870
The selenium driver runs actual browsers rather than headless, and therefore supports whatever functionality real browsers support (at a slower speed than the headless drivers).
Assuming you are using the normal Capybara/RSpec configuration where you have set Capybara.javascript_driver = :poltergeist
and are tagging your scenarios with js: true
to indicate to use poltergeist, then you can remove the js: true
metadata and replace it with driver: :selenium
on the tests where you want to use audio
Upvotes: 1