Why not use `:text` or some other meaningful locator?

I've read the recommended blog post and still don't understand the actual 
use-case. I have written specs against JS-heavy Backbone.js apps before and 
have had no need for this kind of method - i have always solved the async 
problems by waiting for something meaningful.

After-all you're waiting in your test for something specific to happen before 
you can carry on.

In the end - UI tests are meant for testing from the perspective of the user - 
user does not know anything about the DOM, but waits if some element appears or 
disappears before doing something.

---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/193#issuecomment-18413415
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to