Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Better Error Messaging for forgetting getText() #178

Closed
jeffbcross opened this issue Oct 22, 2013 · 0 comments
Closed

Better Error Messaging for forgetting getText() #178

jeffbcross opened this issue Oct 22, 2013 · 0 comments

Comments

@jeffbcross
Copy link
Contributor

I kept getting Maximum call stack size exceeded errors when creating a new test, and had to bug a coworker to figure out the cause. I was forgetting to call getText() on the WebElement in my expectation. E.g.

    var textElement = tractor.findElement(protractor.By.css('.termContent '));
    expect(textElement).toContain('An E2E testing framework essentially');

Should be expect(textElement.getText()) ...

It would be nice to have better error messaging for these kinds of errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant