{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/749","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/749/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/749/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/749/events","html_url":"https://github.com/webdriverio/webdriverio/issues/749","id":103997276,"number":749,"title":"WaitForExist","user":{"login":"linn84","id":4293036,"avatar_url":"https://avatars.githubusercontent.com/u/4293036?v=3","gravatar_id":"","url":"https://api.github.com/users/linn84","html_url":"https://github.com/linn84","followers_url":"https://api.github.com/users/linn84/followers","following_url":"https://api.github.com/users/linn84/following{/other_user}","gists_url":"https://api.github.com/users/linn84/gists{/gist_id}","starred_url":"https://api.github.com/users/linn84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linn84/subscriptions","organizations_url":"https://api.github.com/users/linn84/orgs","repos_url":"https://api.github.com/users/linn84/repos","events_url":"https://api.github.com/users/linn84/events{/privacy}","received_events_url":"https://api.github.com/users/linn84/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-31T06:43:04Z","updated_at":"2015-08-31T06:45:44Z","closed_at":null,"body":"I'm trying to automatically login with two different users in two separate windows. To wait for the windows to load I'm using waitForExist, but this doesn't work.\r\n\r\nBelow is some of my code:\r\n\r\n```js\r\nvar browser = webdriverio.multiremote({\r\n    chrome1 : {\r\n        desiredCapabilities : {\r\n\t    browserName : 'chrome'\r\n\t}\r\n    },\r\n    chrome2 : {\r\n\tdesiredCapabilities : {\r\n\t    browserName : 'chrome'\r\n\t}\r\n    }\r\n});\r\n\r\nfunction logIn() {\r\n    chrome1.waitForExist('#btnLogin').then(function() {\r\n        chrome1.setValue('#logUsername', 'a@a.com').setValue('#password', 'a').click('#btnLogin');\r\n});\r\n```\r\n\r\nIf I add a delay and don't use waitForExist() it works, so the button do really exist when the window is fully loaded."},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/136281075","html_url":"https://github.com/webdriverio/webdriverio/issues/749#issuecomment-136281075","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/749","id":136281075,"user":{"login":"christian-bromann","id":731337,"avatar_url":"https://avatars.githubusercontent.com/u/731337?v=3","gravatar_id":"","url":"https://api.github.com/users/christian-bromann","html_url":"https://github.com/christian-bromann","followers_url":"https://api.github.com/users/christian-bromann/followers","following_url":"https://api.github.com/users/christian-bromann/following{/other_user}","gists_url":"https://api.github.com/users/christian-bromann/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-bromann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-bromann/subscriptions","organizations_url":"https://api.github.com/users/christian-bromann/orgs","repos_url":"https://api.github.com/users/christian-bromann/repos","events_url":"https://api.github.com/users/christian-bromann/events{/privacy}","received_events_url":"https://api.github.com/users/christian-bromann/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T06:45:43Z","updated_at":"2015-08-31T06:45:43Z","body":"What do you mean with it doesn't work?"}}