{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1735","repository_url":"https://api.github.com/repos/webdriverio/webdriverio","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1735/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1735/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1735/events","html_url":"https://github.com/webdriverio/webdriverio/issues/1735","id":192260228,"number":1735,"title":"How to switch browsers in multiremote mode OR how to exact browser start last?","user":{"login":"ssfxate","id":18144023,"avatar_url":"https://avatars.githubusercontent.com/u/18144023?v=3","gravatar_id":"","url":"https://api.github.com/users/ssfxate","html_url":"https://github.com/ssfxate","followers_url":"https://api.github.com/users/ssfxate/followers","following_url":"https://api.github.com/users/ssfxate/following{/other_user}","gists_url":"https://api.github.com/users/ssfxate/gists{/gist_id}","starred_url":"https://api.github.com/users/ssfxate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssfxate/subscriptions","organizations_url":"https://api.github.com/users/ssfxate/orgs","repos_url":"https://api.github.com/users/ssfxate/repos","events_url":"https://api.github.com/users/ssfxate/events{/privacy}","received_events_url":"https://api.github.com/users/ssfxate/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-29T11:45:45Z","updated_at":"2016-11-30T08:39:27Z","closed_at":"2016-11-29T11:48:08Z","body":"## The problem\r\nIn multiremote mode wdio start two browsers, but randomly selected.\r\nHow to switch window in multiremote mode? Like alt+tab to switch program.\r\n\r\n## Environment\r\n* WebdriverIO version: 4.4.0\r\n* Node.js version: 7.2.0\r\n* wdio testrunner\r\n* synchronous\r\n* Mocha, personal warp for chainable\r\n\r\n## Details\r\nMethod from my pageobject\r\n```javascript\r\ntagInputFillAndSubmit (tagName) {\r\n   this.tagInput\r\n            .selectorExecute( els => els[0].scrollIntoView() )\r\n            .waitForVisible()\r\n            .click()\r\n            .setValue(tagName)\r\n            .waitForValue()\r\n            .getValue()\r\n               .should.equal(tagName, `Tag name isn't correct.`)\r\n\r\n    // if window isn't in focus, form closed without sending,\r\n    // but if i switch to window by my self — it works correct.\r\n    this.enter()\r\n    return this;\r\n}\r\n```\r\n\r\nI mean that browsers need to start in sequence of initialize in wdio.conf.js.\r\n```javascript\r\ncapabilities: {\r\n        browserB: { desiredCapabilities: { browserName: 'firefox' } },\r\n        browserA: { desiredCapabilities: { browserName: 'firefox' } }\r\n    },\r\n```\r\nThen last started browser will be in focus."},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/263814692","html_url":"https://github.com/webdriverio/webdriverio/issues/1735#issuecomment-263814692","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1735","id":263814692,"user":{"login":"ssfxate","id":18144023,"avatar_url":"https://avatars.githubusercontent.com/u/18144023?v=3","gravatar_id":"","url":"https://api.github.com/users/ssfxate","html_url":"https://github.com/ssfxate","followers_url":"https://api.github.com/users/ssfxate/followers","following_url":"https://api.github.com/users/ssfxate/following{/other_user}","gists_url":"https://api.github.com/users/ssfxate/gists{/gist_id}","starred_url":"https://api.github.com/users/ssfxate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssfxate/subscriptions","organizations_url":"https://api.github.com/users/ssfxate/orgs","repos_url":"https://api.github.com/users/ssfxate/repos","events_url":"https://api.github.com/users/ssfxate/events{/privacy}","received_events_url":"https://api.github.com/users/ssfxate/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T08:39:27Z","updated_at":"2016-11-30T08:39:27Z","body":"In Firefox some inputs isn't submit correctly or not submit basically.\r\n\r\nMaybe it's a bug of firefox, but i can fix it with focus browser in OS manually and then it isn't auto testing =)"}}
{"actor":{"display_login":"ssfxate"}}