I would probably add a specific method to my page class with using `Wait.until`:
```ruby
def has_autocomplete_result?(result)
Wait.until { browser.div(:id => "autocomplete").a(:text => result).present? }
rescue TimeoutError
false
end
```
I understand though that your API addition proposal would create a "cleaner"
way, but i think it is a really specialized case. I find myself writing the
code above really rarely.
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/193#issuecomment-18446227
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development