Skip to content

Instantly share code, notes, and snippets.

@kavitshah8
Last active December 16, 2016 20:52
Show Gist options
  • Save kavitshah8/a1e823ad7b83044bf0f2 to your computer and use it in GitHub Desktop.
Save kavitshah8/a1e823ad7b83044bf0f2 to your computer and use it in GitHub Desktop.
webrtc automated testing
browser
.execute(function (url1, window1) {
window.open(url1, window1, "height=1024,width=768");
}, [URL1, WINDOW1]);
browser
.execute(function (url2, window2) {
window.open(url2, window2, "height=1024,width=768");
}, [URL2, WINDOW2]);
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');
}
@rchovatiya88
Copy link

rchovatiya88 commented Dec 16, 2016

Hi, how do you define URL1 or URL2? [URL1, WINDOW1] Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment