{"action":"created","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/3201","repository_url":"https://api.github.com/repos/angular/protractor","labels_url":"https://api.github.com/repos/angular/protractor/issues/3201/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/3201/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/3201/events","html_url":"https://github.com/angular/protractor/issues/3201","id":153167911,"number":3201,"title":"WebElementCondition did not resolve to a WebElement","user":{"login":"coreystinson2","id":6710121,"avatar_url":"https://avatars.githubusercontent.com/u/6710121?v=3","gravatar_id":"","url":"https://api.github.com/users/coreystinson2","html_url":"https://github.com/coreystinson2","followers_url":"https://api.github.com/users/coreystinson2/followers","following_url":"https://api.github.com/users/coreystinson2/following{/other_user}","gists_url":"https://api.github.com/users/coreystinson2/gists{/gist_id}","starred_url":"https://api.github.com/users/coreystinson2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreystinson2/subscriptions","organizations_url":"https://api.github.com/users/coreystinson2/orgs","repos_url":"https://api.github.com/users/coreystinson2/repos","events_url":"https://api.github.com/users/coreystinson2/events{/privacy}","received_events_url":"https://api.github.com/users/coreystinson2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-05-05T04:57:38Z","updated_at":"2016-09-09T15:45:36Z","closed_at":"2016-05-05T05:14:42Z","body":"Running a fresh installation of NPM and receiving this error that is not occurring on my main development box, I have followed all installation steps and cannot reproduce on my main box.\r\nsuite is failing with the following error\r\n\r\n`Failed: WebElementCondition did not resolve to a WebElement: [object Object]`\r\n`at /Users/corey/.npm-packages/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:698:17`\r\n\r\nI have identified the error being raised on all of the following commands throughout my suite, and without them the suite passes:\r\n`browser.driver.wait(protractor.until.ableToSwitchToFrame(frame))`\r\n`browser.driver.wait(protractor.until.elementTextIs(element, text))`"},"comment":{"url":"https://api.github.com/repos/angular/protractor/issues/comments/245952781","html_url":"https://github.com/angular/protractor/issues/3201#issuecomment-245952781","issue_url":"https://api.github.com/repos/angular/protractor/issues/3201","id":245952781,"user":{"login":"tbosch","id":690815,"avatar_url":"https://avatars.githubusercontent.com/u/690815?v=3","gravatar_id":"","url":"https://api.github.com/users/tbosch","html_url":"https://github.com/tbosch","followers_url":"https://api.github.com/users/tbosch/followers","following_url":"https://api.github.com/users/tbosch/following{/other_user}","gists_url":"https://api.github.com/users/tbosch/gists{/gist_id}","starred_url":"https://api.github.com/users/tbosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbosch/subscriptions","organizations_url":"https://api.github.com/users/tbosch/orgs","repos_url":"https://api.github.com/users/tbosch/repos","events_url":"https://api.github.com/users/tbosch/events{/privacy}","received_events_url":"https://api.github.com/users/tbosch/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T15:45:36Z","updated_at":"2016-09-09T15:45:36Z","body":"`webdriver.until` is not a real replacement as it expects an already found `WebElement`, and not just a `WebElementFinder`. A better solution is this:\r\n\r\n```\r\nconst selector = element(by.css('some-selector'));\r\nbrowser.wait(protractor.ExpectedConditions.textToBePresentInElement(selector, 'someValue'), 1000)\r\n```\r\n\r\n@juliemr I also stumbled over this issue when upgrading angular to use protractor@4.x. `protractor.until.elementTextIs` seems to be broken for protractor. Could you have a look?\r\n\r\n"}}
{"actor":{"display_login":"tbosch"}}