{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1589","repository_url":"https://api.github.com/repos/webdriverio/webdriverio","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1589/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1589/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1589/events","html_url":"https://github.com/webdriverio/webdriverio/issues/1589","id":176591173,"number":1589,"title":"browser.elements('selector') no longer works","user":{"login":"albertogasparin","id":84136,"avatar_url":"https://avatars.githubusercontent.com/u/84136?v=3","gravatar_id":"","url":"https://api.github.com/users/albertogasparin","html_url":"https://github.com/albertogasparin","followers_url":"https://api.github.com/users/albertogasparin/followers","following_url":"https://api.github.com/users/albertogasparin/following{/other_user}","gists_url":"https://api.github.com/users/albertogasparin/gists{/gist_id}","starred_url":"https://api.github.com/users/albertogasparin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertogasparin/subscriptions","organizations_url":"https://api.github.com/users/albertogasparin/orgs","repos_url":"https://api.github.com/users/albertogasparin/repos","events_url":"https://api.github.com/users/albertogasparin/events{/privacy}","received_events_url":"https://api.github.com/users/albertogasparin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-13T09:22:22Z","updated_at":"2016-09-13T10:42:05Z","closed_at":"2016-09-13T10:42:05Z","body":"After updating wdio-mocha-framework to v0.4.2 (and 0.4.3) `browser.elements()` returns an error when used inside `browser.waitUntil()`.\r\nIt run fine up to wdio-mocha-framework 0.4.1 (so it might be a wdio-sync bug)\r\n\r\n## Environment\r\n\r\n* WebdriverIO version: 4.2.12\r\n* Node.js version: 4.4.1\r\n* [Standalone mode or wdio testrunner](http://webdriver.io/guide/getstarted/modes.html): wdio\r\n* if wdio testrunner, running synchronous or asynchronous tests: sync\r\n* Additional wdio packages used (if applicable): wdio-mocha-framework@0.4.2\r\n\r\n## Link to Selenium/WebdriverIO logs\r\n\r\n```\r\nError: An unknown server-side error occurred while processing the command. (UnknownError:13)\r\n    at Object.Future.wait (/.../node_modules/fibers/future.js:449:15)\r\n    at Object.elements (/.../node_modules/wdio-sync/build/index.js:388:31)\r\n    at Object.<anonymous> (/.../app/components/__tests__/integration.js:82:22)\r\n    at /.../node_modules/wdio-sync/build/index.js:322:29\r\n```\r\n\r\n## Code To Reproduce Issue [ Good To Have ]\r\n\r\n``` js\r\nbrowser.waitUntil(() => {\r\n  return browser.elements('div').length > 0;\r\n}, 5000, 'waitUntil condition not met');\r\n```"},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/246643104","html_url":"https://github.com/webdriverio/webdriverio/issues/1589#issuecomment-246643104","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1589","id":246643104,"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":"2016-09-13T10:42:05Z","updated_at":"2016-09-13T10:42:05Z","body":"Not sure but this should have never worked because elements is a protocol command so you need to access the value property to get the actual response, so\r\n```js\r\nbrowser.waitUntil(() => {\r\n  return browser.elements('div').value.length > 0;\r\n}, 5000, 'waitUntil condition not met');\r\n```\r\nshould work."}}
{"actor":{"display_login":"christian-bromann"}}