you can probably use
ie.div(:class, "buttonMed_off").click
- Original Message -
From:
Park, Chong SuhX
To: wtr-general@rubyforge.org
Sent: Wednesday, September 27, 2006 10:45
AM
Subject: [Wtr-general] Excuting
_javascript_ Function from Watir or Ruby?
Hi,
Bret Pettichord wrote:
On 9/26/06, *Sun* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Regarding documentation, please see:
http://en.wikipedia.org/wiki/Watir
Thank you for taking the time to do this. I do have a comment that i
hope you won't take personally.
I find code
ruby 1.8.4 (2006-04-14) [i386-mswin32]
watir installed via gem 1.5.1.1065
I am able to call the version of ruby ( ruby -v) with result = ruby 1.8.4
(2006-04-14) [i386-mswin32]
I cannot call the version of watir (ruby -e 'require watir; puts
Watir::IE::VERSION')
The windows message reports
Hi,
I am having difficulties using regex and clicking on a link.
the full link is:
javascript:PC_7_0_G6_selectTerritory('1',%20'select')
the regex I am using is:
$ie.link(:url, /javascript.*selectTerritory('1',%20'select')/).click
and I receive an UnknownObjectException
thanks
aidy
I took the win32ole.so from the C:\ruby\lib\ruby\1.8\i386-mswin32 directory and
copied it to my watir\win32ole directory. It now reports back version
1.5.1.1065 and it appears I might be in business.
-
Posted via Jive Forums
Sorry to vent, but I'm the author of the enabled_popup() method (which
has been removed from watir.rb) and the one that helped Sun solve his
problem when he presented it to the list.
If enabled_popup() has in fact been removed entirely, this will be a problem I
think -- since I need the
ok thnx, what a about bigger files? downloading something that is invoked by the link click?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Escape the ( and )
The regex should be:
/javascript.*selectTerritory\('1',%20'select'\)/
Aureliano.
PS: I haven't tried it, so you might have to escape something else. Possible
candidates are ', % and ,.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
To match the text you have supplied, try the following regular expression:
/javascript:.*selectTerritory\('1',%20'select'\)/
You need to escape the parenthesis using backslashes. I hope this helps.
Cheers,
Daniel.
On 28/09/06, Adrian Lewis [EMAIL PROTECTED] wrote:
Hi,
I am having
This is a known bug: http://jira.openqa.org/browse/WTR-86
Thanks for sharing your workaround. Note that it will break the
IE#modal_dialog command. Other than that, you should be fine.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Technically, you didn't send us the full link in your post. You sent us only a part of the full link. Can you simplify your regex? That is, is this good enough? $ie.link(:url, /selectTerritory/).clickOccam's razor works for me. Keep it as simple as possible.
Paul.On 28/09/06, Adrian Lewis [EMAIL
Original Message
Subject:Re: [Wtr-general] Fwd: Managing the Watir Project -- Wikipedia
entry
# To handle general popups, use WinClicker.
ie.button(:name, btnG).click_no_wait # ensure popup won't block Watir
hwnd = ie.enabled_popup(5) # get a
If it's simply disabling/enabling the button element then you can do:
$ie.button(:name, clickme).enabled?
to check whether it's enabled or not.
-Charley
On 9/28/06, David Munns [EMAIL PROTECTED] wrote:
With ruby/watir, is there a way to detect if a button has been disabled?
Not sure where you were looking in the
documentation, but Im pretty sure that disabled? is a
method available on buttons.
Maybe something like
ie.button(:text,ReadMe).disabled?
might work.
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Munns
I am building test automation for a product that displays
_javascript_ alert windows, for which no window handle exists. They act like
modal windows since they wait for a user mouse click on a button (and pause the
automation run). Is there a way with watir to simulate the button click?
Watirists:
My website generates forms on the fly, and names them after relative
paths and files, with a / between them.
When I use wie.form(:id, 'path/file'), I can't hit the form.
Is this a bug? Is the / screwing up the lookup?
--
Phlip
http://c2.com/cgi/wiki?ZeekLand -- NOT a blog!!
Interesting. With a cursory look, I can't seem to get at *any* forms via id: in 1.5.0.945. And show_forms doesn't show id values, either, although one of the forms in forms2.html has id b2. There might be a missing unit test for this as well.
irb(main):013:0
Chris McMahon wrote:
Interesting. With a cursory look, I can't seem to get at *any* forms via
id: in 1.5.0.945. And show_forms doesn't show id values, either, although
one of the forms in forms2.html has id b2. There might be a missing unit
test for this as well.
I don't know how to get
Sun wrote:
If enabled_popup() has in fact been removed entirely, this will be a problem
I think -- since I need the WinClicker to handle my popups. Other techniques
(identified in the FAQ) in fact did not function for me -- at all -- which is
why I used the code I did. Sowhat is the
On 9/28/06, Phlip [EMAIL PROTECTED] wrote:
I don't know how to get my Watir version. What's a good ruby -e '' for that?ruby -e require 'watir'; puts Watir::IE::VERSIONThis is in the FAQ.Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
20 matches
Mail list logo