hinthealth / behave

Front-end testing helpers
MIT License
1 stars 0 forks source link

Clicking on an object not on the page should fail #3

Closed melcher closed 10 years ago

melcher commented 10 years ago

There should be a way to ensure an element is on the page when we click on it. The fact that:

find('Something not on the page').trigger('click');

Succeeds without errors seems pretty inherently wrong. Perhaps something like.

clickOn('Something not on the page');

Could fail, so find could still delegate to jquery.