videojs-automation
v0.3.1
Published
Automation for video.js projects.
Downloads
6
Readme
videojs-automation
Automation for video.js projects.
Powered by BrowserStack
Getting Started
npm install --save-dev videojs-automation
If using Sauce Labs Add the secured Sauce Labs username and key to .travis.yml. If using BrowserStack add the secured BrowserStack username and key to .travis.yml or to the repository settings
Example Task
videojs_automation: {
test: ['test/test.js']
}
Example Test
var Player = require('videojs-automation');
describe('Player', function() {
it('should play', function() {
var player = new Player('http://www.videojs.com');
player.bigPlayButton().click();
expect(player.isPlaying()).toBe(true);
});
});