Testing sound from browser

Hi,
I am wondering if Katalon can automate a test case which triggered when there is a sound from the page. Sorry, I am quite new at using automated testing.

Thank you,
Hansen William

I don’t understand, why would you be looking for a sound?

Hi BL,
It’s because I want to know whether the music in my webpage is turned on or not. This is not really necessary though, as I can just hear it when the test is running. I am just wondering if there is one or not… Thank you for the reply!

I am wondering if Katalon can automate a test case which triggered when there is a sound from the page.

Why not you try to do it yourself first?

If you encounter any problem or error, then come back here and raise question. We would be quite willing to support you to solve it.

Ah that makes sense, I’ve not done that with katalon but there should be someway to write a customer method to detect if an audio file is playing or not.

Maybe something like this:
https://developers.perfectomobile.com/display/TT/Using+an+Audio+Checkpoint

1 Like

Totally unrelated with sound but let me tell that I have once tried to verify if YouTube video is playing visually by checking screenshots.

I have no idea how to verify “sound” in general.

I think we can do some verification against HTML5 elements by calling DOM API using WebUI.executeJavascript()

For example, we can retrieve the “muted” property of a element

http://www.welookups.com/tags/ref_av_dom.html