[wtr-general] Isn't .exists? a boolean method?

2012-12-12 Thread Abe Heward
I appear to be misunderstanding something fundamental... Assume my page does not contain a span with a class of "welcome"... Given that, if I have this line in my Watir code: @browser.span(class: "welcome").exist? ...should that not immediately return a *false*? Why would this ever return a Ti

[wtr-general] Re: Looong pauses while calling present?, exists?, etc... - why do you think this happens?

2012-12-12 Thread Abe Heward
HA! That's funny that I just posted about this EXACT problem. .present? and .exists? should just immediately return true or false--to my mind, anyway. Timeout errors are just inappropriate here. On Monday, December 10, 2012 10:28:15 PM UTC-7, Nigel wrote: > > We're successfully finding element

[wtr-general] Re: Isn't .exists? a boolean method?

2012-12-12 Thread Abe Heward
Note that I am using Watir-webdriver 0.6.2 On Wednesday, December 12, 2012 10:12:28 AM UTC-7, Abe Heward wrote: > > I appear to be misunderstanding something fundamental... > > Assume my page does not contain a span with a class of "welcome"... > > Given that, if I have this line in my Watir code:

[wtr-general] Re: Isn't .exists? a boolean method?

2012-12-12 Thread Justin Ko
Are you using Firefox? I had this problem after updating Firefox to version 17. Upgrading to the latest version of selenium-webdriver (2.27.2) fixed the issue for me. Justin On Wednesday, December 12, 2012 12:15:56 PM UTC-5, Abe Heward wrote: > > Note that I am using Watir-webdriver 0.6.2 > >