I'm getting an exception:
Capybara::Poltergeist::JavascriptError
And a debug output:
"args"=>[[{"message"=>"ReferenceError: Can't find variable: Audio"
Here's what I found when researching the error:
This issue is due to sencha 2.0 using phantomjs in order to resolve dependencies. Phantomjs does not support the HTML5 Audio API.
Question is: How do I ignore javascript errors for javascript Audio type when using capybara/poltergeist ?
I tried
visit "/"
page.execute_script "var Audio= function(){ return { load: function(){}, play: function(){} } }"
But error is thrown at the visit method.