Last active
December 16, 2016 20:52
-
-
Save kavitshah8/a1e823ad7b83044bf0f2 to your computer and use it in GitHub Desktop.
webrtc automated testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser | |
.execute(function (url1, window1) { | |
window.open(url1, window1, "height=1024,width=768"); | |
}, [URL1, WINDOW1]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser | |
.execute(function (url2, window2) { | |
window.open(url2, window2, "height=1024,width=768"); | |
}, [URL2, WINDOW2]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shareVideo: function (browser) { | |
browser | |
.switchWindow(window1) | |
.click('#video-feed', 'start sharing webcam from window1'); | |
}, | |
checkVideoFeed: function (browser) { | |
browser | |
.switchWindow(window2) | |
.verify.visible('#video-feed', 'video-feed from window1 is visible on window2'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, how do you define URL1 or URL2? [URL1, WINDOW1] Thank you.