Skip to content

Wrapped Capybara::ElementNotFound error in AePageObjects::LoadingElementFailed#67

Merged
dtognazzini merged 1 commit intomasterfrom
wrapElementNotFound
Sep 10, 2014
Merged

Wrapped Capybara::ElementNotFound error in AePageObjects::LoadingElementFailed#67
dtognazzini merged 1 commit intomasterfrom
wrapElementNotFound

Conversation

@ipmsteven
Copy link
Copy Markdown
Contributor

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.

@ipmsteven ipmsteven force-pushed the wrapElementNotFound branch 2 times, most recently from c99b2ac to 2bdc8b3 Compare September 9, 2014 00:25
…entFailed so that ElementProxy#presence can handle the case where locating the element succeeds but the load ensuring checks fail.
dtognazzini added a commit that referenced this pull request Sep 10, 2014
Wrapped Capybara::ElementNotFound error in AePageObjects::LoadingElementFailed
@dtognazzini dtognazzini merged commit e323dbf into master Sep 10, 2014
@dtognazzini dtognazzini deleted the wrapElementNotFound branch September 10, 2014 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants