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
...@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
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
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
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
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
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
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
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
= 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
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
= @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
12 matches
Mail list logo