如何在 selenium-webdriver 中处理视频?
我有一些视频,我想用自动化测试它们。
您能告诉一下,selenium-webdriver
如何处理视频吗?
它如何识别它?
I have some videos and I want to test their with automation.
Could you tell, how does selenium-webdriver
work with video?
How does it recognize it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Selenium 可以测试视频 DOM 中是否存在正确的元素。您将无法真正使用 Selenium 与视频进行交互。您可能需要记录网络流量以检查相关项目是否正在下载或是否出现 404 错误。
Selenium can test if the correct elements are in the DOM for video. You won't really be able to interact with the video with Selenium. You many need to record the network traffic to check the relevant items are being downloaded or if they 404.
我使用 WebdriverJS 点击 youtube 视频。
我测试了以下方法并发现它们有效。
这当然有点令人惊讶,因为 Selenium 不应该与闪存一起工作......
I use WebdriverJS to click on youtube video.
I have tested the methods below and found them to work.
This of course is a little surprising as Selenium is not supposed to work with flash...