camme/webdriverjs — pull request #241 by lye (2014-06-20 20:31:14+00:00)
Title: Fix isVisible to correctly handle some errors.

* Treat NoSuchElement as "invisible".
* Treat StaleElementReference as "invisible".

These errors can be raised when using waitForVisible/waitForInvisible to query for elements that are added to/removed from the DOM (rather than simply being hidden/shown). This patch allows this usage, which would previously just throw errors.

This might also fix #223.