[wtr-general] Re: ObsoleteElementError when selecting elements with RegEx

2012-01-10 Thread Christopher Stasonis
A little more context is in order. I have a function that returns an Element Collection, ie def getDivs @browser.divs(:class, /.*myClass.*/) end On each page refresh I call this function to check that they contain some other divs, getDivs.all? do |d| end -- Before posting, please read http

[wtr-general] Re: ObsoleteElementError when selecting elements with RegEx

2012-01-10 Thread Chuck van der Linden
Sounds like the page contents may be getting updated at some point (perhaps by client side code) after your first call. are you creating an object and then trying multiple operations against the object? eg something like this stuff = @browser.div(:class, /.*myClass.*/) stuff.link(:how, 'what).

[wtr-general] Re: use shoes with watir

2012-01-10 Thread Dave McNulla
Sounds like shoes has an unsupportable design. You could try to fix that, but it's probably a lot of work. Your alternative is to use an older ruby/watir. Good luck Dave -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegr

[wtr-general] ObsoleteElementError when selecting elements with RegEx

2012-01-10 Thread Christopher Stasonis
I'm consistently getting ObsoleteElementErrors thrown when using a regex to select by class name, ie: @browser.div(:class, /.*myClass.*/) The first call to this works fine, but subsequent calls throw the ObsoleteElementError. In this case my element has multiple classes and simply doing @bro

[wtr-general] Re: use shoes with watir

2012-01-10 Thread Barry
But shoes has a ruby intergrated inside itself. For that ruby, there is no "gem" executable. On Jan 10, 12:43 am, Dave McNulla wrote: > can't you just run "c:\> gem -v" to see the version you are using of gems? > And if you are using the wrong one, run "c:\> gem update --system" > > Dave > > --

[wtr-general] Re: Milestone for the Watir tag on Stack Overflow

2012-01-10 Thread Dan Claudiu Pop
yey :) like a boss ! On Jan 10, 8:09 am, Chuck van der Linden wrote: > Well, we just had our 500th question with a 'Watir" tag on it posted > over on Stack Overflow.  http://stackoverflow.com/q/8796067/409820 > > Tempting to suggest we should vote the heck out of it just because > it's #500, but

Re: [wtr-general] Milestone for the Watir tag on Stack Overflow

2012-01-10 Thread Željko Filipin
On Tue, Jan 10, 2012 at 7:09 AM, Chuck van der Linden wrote: > Well, we just had our 500th question with a 'Watir" tag on it posted > over on Stack Overflow. This is great news! :) Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir