ktarik
ktarik

Reputation: 653

How to work with video in 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?

Upvotes: 3

Views: 667

Answers (2)

user2142272
user2142272

Reputation: 41

I use WebdriverJS to click on youtube video.

I have tested the methods below and found them to work.

.click("#videoid")
.click("iframe:hover")
.click(".classname")

This of course is a little surprising as Selenium is not supposed to work with flash...

Upvotes: 1

AutomatedTester
AutomatedTester

Reputation: 22438

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.

Upvotes: 1

Related Questions