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

2012-12-14 Thread Abe Heward
Thanks! On Thursday, December 13, 2012 2:37:50 PM UTC-7, Željko Filipin wrote: On Thu, Dec 13, 2012 at 9:09 PM, Željko Filipin zeljko@gmail.comjavascript: wrote: I just fixed a similar problem myself. Reverting back to Firefox 16 fixed the problem. And here it is:

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

2012-12-13 Thread Željko Filipin
On Wed, Dec 12, 2012 at 11:38 PM, Justin Ko justin.t...@gmail.com wrote: 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. +1 Željko -- https://leanpub.com/watirbook --

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

2012-12-13 Thread Abe Heward
Thanks, Justin, I'll give that a try. On Wednesday, December 12, 2012 3:38:58 PM UTC-7, Justin Ko wrote: 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

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

2012-12-13 Thread Abe Heward
Sadly, an upgrade to the latest selenium-webdriver (2.27.2) hasn't resolved this problem. :( On Thursday, December 13, 2012 6:47:57 AM UTC-7, Abe Heward wrote: Thanks, Justin, I'll give that a try. On Wednesday, December 12, 2012 3:38:58 PM UTC-7, Justin Ko wrote: Are you using Firefox? I

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

2012-12-13 Thread Željko Filipin
On Thu, Dec 13, 2012 at 4:09 PM, Abe Heward ahew...@rsmart.com wrote: Sadly, an upgrade to the latest selenium-webdriver (2.27.2) hasn't resolved this problem. :( Could you provide a minimal HTML and Ruby code to reproduce the problem? Or even better, link to the page with the problem? Or, do

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

2012-12-13 Thread Abe Heward
That'll be tough, unfortunately. The basic issue, though, is: 1) Target element (in my case it was a span being identified by its class) does not exist on the page 2) Use target_element.present? in a script 3) Get a timeout error instead of false. I switched to using Chrome as my test browser

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

2012-12-13 Thread Oscar Rieken
did you try upping the time out or using when_present to see if its a page loading issue? or do you already know that the page is completely loaded and expect it to fail On Thu, Dec 13, 2012 at 2:48 PM, Abe Heward ahew...@rsmart.com wrote: That'll be tough, unfortunately. The basic issue,

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

2012-12-13 Thread Abe Heward
Yeah Oscar, the page is definitely fully loaded. Thanks for asking, though! On Thursday, December 13, 2012 1:08:39 PM UTC-7, Oscar.Rieken wrote: did you try upping the time out or using when_present to see if its a page loading issue? or do you already know that the page is completely loaded

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

2012-12-13 Thread Željko Filipin
On Thu, Dec 13, 2012 at 9:09 PM, Željko Filipin zeljko.fili...@gmail.comwrote: I just fixed a similar problem myself. Reverting back to Firefox 16 fixed the problem. And here it is: https://github.com/wikimedia/qa-browsertests/commit/258f8ed4d55d7413c5da815744d3339ef1289eeb Željko --

[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 On