appfolio/ae_page_objects — pull request #67 by ipmsteven (2014-09-09 00:03:11+00:00)
Title: Wrapped Capybara::ElementNotFound error in AePageObjects::LoadingElementFailed

Capybara::ElementNotFound is raised from Capybara#find calls.

Prior to these changes creating a new Element could fail for either Capybara::ElementNotFound or AePageObjects::LoadingFailed.

The changes map Capybara::ElementNotFound exceptions to AePageObjects::LoadingFailed and fix a bug in ElementProxy#presence which was only handling Capybara::ElementNotFound.

Additionally, these changes make the loading failure mode across Documents and Elements consistent by having both modes raise AePageObjects::LoadingFailed subtypes for all loading failures.