From e4688f987672112f3f353534b9aca3b2bbb3e3cc Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Mon, 30 Oct 2017 19:08:42 +0100 Subject: [PATCH] Pause to let iframe load --- test/e2e/page_objects/embedStream.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/e2e/page_objects/embedStream.js b/test/e2e/page_objects/embedStream.js index 2ee8b31fd..f148ae7bc 100644 --- a/test/e2e/page_objects/embedStream.js +++ b/test/e2e/page_objects/embedStream.js @@ -8,6 +8,11 @@ module.exports = { }, getEmbedSection: function() { this.waitForElementVisible('@iframe'); + + // Pause a bit to let iframe initialize in the hope that it'll + // fix https://www.browserstack.com/automate/builds/96419cf46e3d6376a36ae6d3f90934112df1ed91/sessions/224f1a1566c1c8c7859e2e76ece51862200f0173#automate_button + this.api.pause(200); + this.api.frame(iframeId); this.expect.section('@embed').to.be.present; return this.section.embed;