just to give example of code we use in tests
element = browser.div(class: 'some-element').when_present
....
element.should be_present

that will always pass since present? was redefined by active support and always 
returns true for non nil objects.

I will write a test to show this, forgive my timing.

Kirill R

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

Reply via email to