检查音频播放正确使用Selenium [英] Check if audio is playing correctly using Selenium

查看:131
本文介绍了检查音频播放正确使用Selenium的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写测试的HTML5游戏,我要检查的音频加载和正常启动。

I am writing tests for an HTML5 game, and I want to check that the audio is loading and starting correctly.

有没有一种方法来检查这个使用Selenium?还是我需要在操作系统层面做到这一点?

Is there a way to check this using Selenium? or do I need to do this at the OS level?

推荐答案

我总是像这样带着问题作出回应的告诉我,一个人如何检查... 的。答案是这样的情况是听声音,看看有什么是应该被打的。你不会是能够使一台计算机做的,很容易。

I always respond to questions like this with "Tell me how a human being would check that ...". The answer is this case would be to listen to the audio and see if what's supposed to be playing is. You're not going to be able to make a computer do that easily.

这篇关于检查音频播放正确使用Selenium的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆