Check if audio is playing correctly using Selenium

前端 未结 2 1731
無奈伤痛
無奈伤痛 2020-12-30 11:53

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

Is there a way to check this using Selenium? or do I need

2条回答
  •  感动是毒
    2020-12-30 12:08

    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.

提交回复
热议问题