We are going to include azure media player to provide some video content in our project. as part of testing, we need to automate the controls and verify text, image or frames if necessary. currently we are using selenium. Can we automate directly using selenium with javascriptexecutor or do we need any other plug-ins to do that?
any help would be appreciated.
Thanks in advance
All controls of azure media player can be automated using selenium. From the sample media player that I have gone through I could figure out that Play, pause and full screen buttons could be easily done using selenium element click method. while the video quality toggle and the volume can be automated easily using the actions class.
Related
I am automating the HTML5 Video Player. I do not want only Play/Pause/Load actions on a Player but also I want to automate Leep Seek/Reading for a Player. I want to automate the content which is present in the player using Appium. I have an Android app which contains the player.
How we can automate what is going on inside the video at a specific time? Is there any external tool or Jar present to automate this activity for HTML5 Video Player?
You can use OpenCV library to process video player screenshots (e.g. some parts of it, like video content) made with Appium.
And the cool thing is that Appium already supports this library under the hood
Since you mentioned HTML5 I recommend checking WebDriver-based examples.
i am working on tracking app using vue.js. I am a new developer.i wanna know is it possible to track mouse click and capture screenshots even if person is on desktop or any where else on browser
This has nothing to do with VueJs specifically. However, you can use HTML5/Canvas/Javascript to take a screenshot, but that's still experimental.
Take a look at this answer: Using HTML5/Canvas/JavaScript to take in-browser screenshots
i have found the solution
i followed the steps here
https://www.webrtc-experiment.com/getScreenId/
these steps allowed me the screen sharing on my webpage and then i use html to canvas to get the image of the video tag
i'm new to android automation testing and i recently started to work with Appium.
I use it for android native app automation.
I have 2 question -
is there a way to verify toasts?
the latest posts i saw which referred to this issue are from the mid of 2014
and i wanted to know if there's something new in this subject before i will find another tool to run my tests with (as i understand selendroid can verify toasts).
is there a way to catch the http request which my app sends to the server when i'm pressing a button, during the automatic test?
something like a listener which works in the backround and wait for clicks?
tnx
To verify toast messages you can use one of image recognition libraries. For ruby I use RTesseract together with image processor RMgick
Idea is simple:
make toast message to appear
take few screenshots
iterate over taken screenshots and look for text
You may play with image processing, to increase recognition quality.
Here you can find code snippet which I use in my framework: link
I'm running appjs and I'm thinking of showing live content from the local webcam in the html and would like some hints on how to do this.
/Kristofer
Appjs is built on top of CEF so I think I am correct in saying that at the moment this functionality is not available out of the box. However the next version of AppJS will use content api which means that media and video should be available.
For now I would suggest that you develop your application in HTML5 using chrome and then run it inside AppJS later on when it catches up and provides these functions out of the box.
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?
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.
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...