I'm running a couple of different web servers and I usually use Selenium to test the page content.
Some of the pages have embedded audio wave files. On Safari, these only play if the server sends the Content-Range header. That header is missing from one of my web servers and Safari users on that site can't hear the embedded audio. I can fix that, I think :-)
But I'd also like to verify that with a test. I understand that Selenium is intended for user-level testing, not looking at specific response headers. So, since my main goal is to get the audio to play in all browsers, is there a way to use Selenium to verify that Safari (that all browsers really) could download and 'play' the audio ok?
I can give it a direct link to the wave file:
await driver.get(`${testHost}wp-content/uploads/exampleAudio.wav`);
but I don't know where to go from here to verify that the (Safari) driver was able to play the audio ok.
Similar to this question from some years ago, but it's not about the audio quality, it's about whether or not the browser managed to send anything to the OS audio subsystem. I do have soundflower and sox and would use them too if necessary.
Aucun commentaire:
Enregistrer un commentaire