Re: [Wtr-general] form(:id, 'a/b')

2006-09-28 Thread Bret Pettichord
Forms appear to be pretty broken in 1.5. This was reported earlier. http://jira.openqa.org/browse/WTR-80 Your posts have prompted me to look into this more deeply. It could be a fairly general problem although i'm still puzzled why all our form unit tests pass. Seems like we need better tests..

Re: [Wtr-general] form(:id, 'a/b')

2006-09-28 Thread Bret Pettichord
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::VERSION"This is in the FAQ.Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org htt

Re: [Wtr-general] Fwd: Managing the Watir Project -- Wikipedia entry

2006-09-28 Thread Bret Pettichord
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

Re: [Wtr-general] form(:id, 'a/b')

2006-09-28 Thread Phlip
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

Re: [Wtr-general] form(:id, 'a/b')

2006-09-28 Thread Chris McMahon
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> ie.form(:id,'foo').clickWatir::

[Wtr-general] form(:id, 'a/b')

2006-09-28 Thread Phlip
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!! __

[Wtr-general] watir and Javascript alert windows

2006-09-28 Thread 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?

Re: [Wtr-general] detecting button as disabled or enabled

2006-09-28 Thread Alan Ark
Not sure where you were looking in the documentation, but I’m 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

Re: [Wtr-general] detecting button as disabled or enabled

2006-09-28 Thread Charley Baker
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? > _

Re: [Wtr-general] Fwd: Managing the Watir Project -- Wikipedia entry

2006-09-28 Thread Charley Baker
> 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)

Re: [Wtr-general] regex && url

2006-09-28 Thread Paul Carvalho
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 <[E

Re: [Wtr-general] regex && url

2006-09-28 Thread Bret Pettichord
There are a number of special characters for Regular Expressions. If you want to handle situations like this without having to know about all these characters you can use Regexp.escape(). Thus: $ie.link(:url, Regexp.new(Regexp.escape("selectTerritory('1',%20'select')"))).click You can also j

[Wtr-general] detecting button as disabled or enabled

2006-09-28 Thread David Munns
With ruby/watir, is there a way to detect if a button has been disabled? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir directory incorrect - specified module could not be found

2006-09-28 Thread Bret Pettichord
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 http://rubyfo

Re: [Wtr-general] regex && url

2006-09-28 Thread Daniel Browne
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

Re: [Wtr-general] regex && url

2006-09-28 Thread Aureliano Calvo
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 Beh

Re: [Wtr-general] file download

2006-09-28 Thread Luke
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

Re: [Wtr-general] Fwd: Managing the Watir Project -- Wikipedia entry

2006-09-28 Thread Sun
> 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 Win

Re: [Wtr-general] Watir directory incorrect - specified module could not be found

2006-09-28 Thread CJ
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 http

[Wtr-general] regex && url

2006-09-28 Thread Adrian Lewis
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 -

[Wtr-general] Watir directory incorrect - specified modules could not be found

2006-09-28 Thread CJ
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 t

Re: [Wtr-general] Fwd: Managing the Watir Project -- Wikipedia entry

2006-09-28 Thread David Schmidt
Bret Pettichord wrote: > On 9/26/06, *Sun* <[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. > >