{"action":"created","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/3076","repository_url":"https://api.github.com/repos/angular/protractor","labels_url":"https://api.github.com/repos/angular/protractor/issues/3076/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/3076/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/3076/events","html_url":"https://github.com/angular/protractor/issues/3076","id":144792127,"number":3076,"title":"addLocator Example is broken","user":{"login":"lrajlich","id":3371989,"avatar_url":"https://avatars.githubusercontent.com/u/3371989?v=3","gravatar_id":"","url":"https://api.github.com/users/lrajlich","html_url":"https://github.com/lrajlich","followers_url":"https://api.github.com/users/lrajlich/followers","following_url":"https://api.github.com/users/lrajlich/following{/other_user}","gists_url":"https://api.github.com/users/lrajlich/gists{/gist_id}","starred_url":"https://api.github.com/users/lrajlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrajlich/subscriptions","organizations_url":"https://api.github.com/users/lrajlich/orgs","repos_url":"https://api.github.com/users/lrajlich/repos","events_url":"https://api.github.com/users/lrajlich/events{/privacy}","received_events_url":"https://api.github.com/users/lrajlich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/protractor/labels/type:%20docs","name":"type: docs","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-31T05:22:22Z","updated_at":"2016-04-01T21:19:59Z","closed_at":null,"body":"> element(by.buttonTextSimple('Sign In')).isDisplayed();\r\nWebDriverError: unknown error: Cannot read property 'querySelectorAll' of null\r\n  (Session info: chrome=49.0.2623.110)\r\n  (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Mac OS X 10.10.5 x86_64) (WARNING: The server did not provide any stacktrace information)\r\nCommand duration or timeout: 5 milliseconds\r\n....\r\n\r\nThe root issue can be solved by changing this line:\r\n`var using = opt_parentElement,` to `var using = opt_parentElement || document,`"},"comment":{"url":"https://api.github.com/repos/angular/protractor/issues/comments/204568768","html_url":"https://github.com/angular/protractor/issues/3076#issuecomment-204568768","issue_url":"https://api.github.com/repos/angular/protractor/issues/3076","id":204568768,"user":{"login":"lrajlich","id":3371989,"avatar_url":"https://avatars.githubusercontent.com/u/3371989?v=3","gravatar_id":"","url":"https://api.github.com/users/lrajlich","html_url":"https://github.com/lrajlich","followers_url":"https://api.github.com/users/lrajlich/followers","following_url":"https://api.github.com/users/lrajlich/following{/other_user}","gists_url":"https://api.github.com/users/lrajlich/gists{/gist_id}","starred_url":"https://api.github.com/users/lrajlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrajlich/subscriptions","organizations_url":"https://api.github.com/users/lrajlich/orgs","repos_url":"https://api.github.com/users/lrajlich/repos","events_url":"https://api.github.com/users/lrajlich/events{/privacy}","received_events_url":"https://api.github.com/users/lrajlich/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T21:19:59Z","updated_at":"2016-04-01T21:19:59Z","body":"yes, I was able to figure out the right behavior locating and reading through the built in locator code. PR: https://github.com/angular/protractor/pull/3084"}}