angular/protractor — pull request #1290 by elgalu (2014-09-05 03:03:01+00:00)
Title: chore(tests): isPresent() shouldn't raise error on chained finders

I tend to build page objects by taking advantage of ElementFinder chaining feature.

Problem is, when testing for absent chained elements, if some parent isn't present it fails with an exception instead of isPresent() resolving to false.

Attached the test case as a PR, the output is:

```
Failures:

1) ElementFinder isPresent() shouldn't raise error on chained finders
Message:
Error: No element found using locator: By.cssSelector(".nopenopenope")
Stacktrace:
Error: No element found using locator: By.cssSelector(".nopenopenope")
==== async task ====
Asynchronous test function: it()
Error
at null. (/home/user/oss/protractor/spec/basic/elements_spec.js:285:22)
Error
at null. (/home/user/oss/protractor/spec/basic/elements_spec.js:281:3)
at Object. (/home/user/oss/protractor/spec/basic/elements_spec.js:3:1)
```