Add little pause waiting for popup to open

This commit is contained in:
Chi Vinh Le
2017-10-30 16:09:16 +01:00
parent 975fe550e0
commit 53b1104cf8
+4
View File
@@ -26,6 +26,10 @@ module.exports = {
.waitForElementVisible('@signInButton')
.click('@signInButton');
// Wait for window to be created
// https://www.browserstack.com/automate/builds/1ceccf4efb4683b7feb890f45a32b5922b40ed3f/sessions/17b1a79682bef2498cb0be86eac317a08c976b0a#automate_button
client.pause(200);
// Focusing on the Login PopUp
windowHandler.windowHandles((handles) => {
client.switchWindow(handles[1]);