{"action":"created","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/4902","repository_url":"https://api.github.com/repos/angular/protractor","labels_url":"https://api.github.com/repos/angular/protractor/issues/4902/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/4902/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/4902/events","html_url":"https://github.com/angular/protractor/issues/4902","id":344409864,"node_id":"MDU6SXNzdWUzNDQ0MDk4NjQ=","number":4902,"title":"browser.element(locator) not find element which dynamically added into dom","user":{"login":"MuraliMolluru","id":20796723,"node_id":"MDQ6VXNlcjIwNzk2NzIz","avatar_url":"https://avatars3.githubusercontent.com/u/20796723?v=4","gravatar_id":"","url":"https://api.github.com/users/MuraliMolluru","html_url":"https://github.com/MuraliMolluru","followers_url":"https://api.github.com/users/MuraliMolluru/followers","following_url":"https://api.github.com/users/MuraliMolluru/following{/other_user}","gists_url":"https://api.github.com/users/MuraliMolluru/gists{/gist_id}","starred_url":"https://api.github.com/users/MuraliMolluru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MuraliMolluru/subscriptions","organizations_url":"https://api.github.com/users/MuraliMolluru/orgs","repos_url":"https://api.github.com/users/MuraliMolluru/repos","events_url":"https://api.github.com/users/MuraliMolluru/events{/privacy}","received_events_url":"https://api.github.com/users/MuraliMolluru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-07-25T11:47:54Z","updated_at":"2018-12-14T10:17:01Z","closed_at":null,"author_association":"NONE","body":"Hi there!\r\nI have a case where some html elements are being added to DOM when some actions are made so when protractor trying to find those newly added elements during the execution it failed to locate. \r\nI am using browser.element(ele) which is not working but browser.driver.findElement(locator) is working but browser.driver.findElement() gives WebElement, i need to convert to protractor.element for further verifications.\r\nHow do i proceed? Any help would be greatly appreciated."},"comment":{"url":"https://api.github.com/repos/angular/protractor/issues/comments/447280364","html_url":"https://github.com/angular/protractor/issues/4902#issuecomment-447280364","issue_url":"https://api.github.com/repos/angular/protractor/issues/4902","id":447280364,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzI4MDM2NA==","user":{"login":"YuriBarssi","id":22315777,"node_id":"MDQ6VXNlcjIyMzE1Nzc3","avatar_url":"https://avatars0.githubusercontent.com/u/22315777?v=4","gravatar_id":"","url":"https://api.github.com/users/YuriBarssi","html_url":"https://github.com/YuriBarssi","followers_url":"https://api.github.com/users/YuriBarssi/followers","following_url":"https://api.github.com/users/YuriBarssi/following{/other_user}","gists_url":"https://api.github.com/users/YuriBarssi/gists{/gist_id}","starred_url":"https://api.github.com/users/YuriBarssi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuriBarssi/subscriptions","organizations_url":"https://api.github.com/users/YuriBarssi/orgs","repos_url":"https://api.github.com/users/YuriBarssi/repos","events_url":"https://api.github.com/users/YuriBarssi/events{/privacy}","received_events_url":"https://api.github.com/users/YuriBarssi/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T10:17:01Z","updated_at":"2018-12-14T10:17:01Z","author_association":"NONE","body":"@IgorSasovets I have other tests running for the same type of elements and they run well when the element does not have a time to vanish. Also, this particular element shows behind a spinner layer, a slideout and some other elements. So I think this was adding complexity to it.\r\nFYI - I could get around the issue in two ways. \r\nThe first was to use `browser.driver.findElement` instead of `element` from protractor.\r\nThe other one as use `browser.ignoreSynchronization = true` before running the method to find the toast - and turning it to false after it. It did the job."}}
{"actor":{"display_login":"YuriBarssi"}}