[wtr-general] Re: wait_until{).exists? } || wait_until{).exists?

2009-02-12 Thread Richard Lawrence
The whole condition, with the OR, goes in the block. Like this: Watir::Waiter.wait_until{ ie.p(:id,'savewarning').exists? || ie.p(:id,'saveconfirm').exists? } Richard -- Richard Lawrence Certified Scrum Coach Founder and Principal Consultant, Humanizing Work, LLC 303-895-7688 rich

[wtr-general] Re: Integration with Rally

2009-01-28 Thread Richard Lawrence
...@googlemail.com wrote: Hi Richard 2009/1/27 Richard Lawrence rslawre...@gmail.com: A Cucumber editor is one of the things on my list of projects. I could see that making Cucumber + Watir an easy sell for customer acceptance tests. Not sure when I'll actually start on it, though. Richard I

[wtr-general] Re: checking if a lightbox is showing

2009-01-20 Thread Richard Lawrence
are often moved off the visibile part of the screen by setting the css position to -1000, -1000 Paul On Tue, Jan 20, 2009 at 1:48 PM, Richard Lawrence rslawre...@gmail.com wrote: Has anyone found a good way to determine whether or not a lightbox is showing with Watir? Since the lightbox div

[wtr-general] Re: Access an object

2009-01-13 Thread Richard Lawrence
This ought to do it: require 'watir' include Watir ie=IE.new ie.goto(file://c:/temp2.htm) ie.element_by_xpath(//*...@name='imp1']).click() Richard -- Richard Lawrence Certified Scrum Coach Founder and Principal Consultant, Humanizing Work, LLC 303-895-7688 rich...@humanizingwork.com

[wtr-general] Re: Access an object

2009-01-13 Thread Richard Lawrence
You don't get back the specific object type from element_by_xpath, so some methods don't work. But this works: b = Watir::IE.new b.goto 'http://www.google.com/' txt = b.element_by_xpath(//*...@name='q']) txt.value = 'Richard Lawrence' btn = b.element_by_xpath(//*...@name='btnG']) btn.click So

[wtr-general] Re: Positioning of a Checkbox before a Submit button

2009-01-09 Thread Richard Lawrence
You could try using XPath's following and preceding (or following-sibling and preceding-sibling) axes. If that's not enough detail to get you going, post the HTML, and I'll give you more specific help. Richard -- Richard Lawrence Certified Scrum Coach Founder and Principal Consultant, Humanizing

[wtr-general] element_by_xpath return value

2009-01-08 Thread Richard Lawrence
Using FireWatir's element_by_xpath on my Mac, I get the expected type for the element. For example, on the Google home page: irb(main):008:0 b.element_by_xpath(//*...@name='btnG']).class submit = FireWatir::Button But with Watir (on Windows, of course), I always get an instance of WIN32OLE

[wtr-general] Re: browser.rb

2009-01-06 Thread Richard Lawrence
Not on the method itself, but on the return value of the method call, which is the appropriate browser class as determined by the configuration settings. Richard -- Richard Lawrence Certified Scrum Coach Founder and Principal Consultant, Humanizing Work, LLC 303-895-7688 rich

[wtr-general] Re: Turning Javascript on and off

2008-12-14 Thread Richard Lawrence
the state of IE by reading the appropriate registry key. Hope that helps, Richard -- Richard Lawrence Certified Scrum Coach Founder and Principal Consultant, Humanizing Work, LLC 303-895-7688 rich...@humanizingwork.com www.humanizingwork.com www.richardlawrence.info On Sun, Dec 14, 2008 at 7:29 PM

[wtr-general] Re: Capturing data within an xml

2008-12-04 Thread Richard Lawrence
= d - c which in turn would make $e TESTA? On Dec 4, 4:55 pm, Richard Lawrence [EMAIL PROTECTED] wrote: Why are you accessing the web service using Watir and IE? Will end users of the web service access it with a browser? If not, and if you're just using the web service to get data to use

[wtr-general] Re: Capturing data within an xml

2008-12-03 Thread Richard Lawrence
of your script. Richard -- Richard Lawrence Certified Scrum Coach Founder and Principal Consultant, Humanizing Work, LLC 303-895-7688 [EMAIL PROTECTED] www.humanizingwork.com www.richardlawrence.info On Wed, Dec 3, 2008 at 9:29 PM, winstan [EMAIL PROTECTED] wrote: Hi all, I'm trying to capture

[wtr-general] Re: firefox on mac not quitting

2008-12-02 Thread Richard Lawrence
= @browser_factory.get_new_browser end After do @browser_factory.quit_browser end ... It would be nice if the APIs matched for the different flavors of Watir, but for my current app, I'm only testing with FF on Mac, so this works for me. Richard -- Richard Lawrence Certified Scrum Coach Founder and Principal