Re: [Wtr-general] hi, not able to use assert

2007-02-01 Thread carl . l . shaulis
Hi Maloy, A snippet of code was provided yesterday. Did you see this code? Does this code not work? Do you have questions about the code? Are you executing this via IRB or someting like Eclipse? Have you executed any of the unit tests? Do the assertions work for the unit tests? Thanks,

Re: [Wtr-general] Unable to access a modal dialog box to select a

2007-02-01 Thread Bret Pettichord
It sounds like it is not a web modal dialog, which is what our advice is for, but rather a windows modal dialog. If so, i suggest using AutoIt. Bret - Posted via Jive Forums

Re: [Wtr-general] Watir with Ajax

2007-02-01 Thread Željko Filipin
Can you post your html or send a link to your application? -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Everyday Scripting with Ruby (the book)

2007-02-01 Thread Richard Conroy
I am curious what everyone thinks of this (new) book. It starts off well, with the first example tutorial being how to test if an uninstaller worked. No hello world, silly arithmetic examples etc. Well it is ordered, I will know myself soon. ___

Re: [Wtr-general] Everyday Scripting with Ruby (the book)

2007-02-01 Thread Chris McMahon
On 2/1/07, Richard Conroy [EMAIL PROTECTED] wrote: I am curious what everyone thinks of this (new) book. It starts off well, with the first example tutorial being how to test if an uninstaller worked. No hello world, silly arithmetic examples etc. Well it is ordered, I will know myself

Re: [Wtr-general] Everyday Scripting with Ruby (the book)

2007-02-01 Thread Phlip
Richard Conroy wrote: I am curious what everyone thinks of this (new) book. It starts off well, with the first example tutorial being how to test if an uninstaller worked. I'm hooked. Brian's no slacker, and he started with the T-word! -- Phlip http://c2.com/cgi/wiki?ZeekLand -- NOT a

Re: [Wtr-general] Everyday Scripting with Ruby (the book)

2007-02-01 Thread Paul Rogers
I didnt enjoy the early drafts too much, but with Brian Marrick as the author, you know its going to be full of useful stuff. I was checking the prag programmers site daily for it to come out. - Original Message - From: Richard Conroy [EMAIL PROTECTED] To: wtr-general@rubyforge.org

[Wtr-general] Is there a way to over ride Watir's checking if IE is busy?

2007-02-01 Thread Nathan
I am trying to test a website that has streaming content, and it seems that because this content is streaming, IE never returns that it is no longer busy. Is there some way around this? I am unable to do anything on the site in these cases. Thanks, Nathan

Re: [Wtr-general] Is there a way to over ride Watir's checking if IE isbusy?

2007-02-01 Thread Paul Rogers
I had the same problem once too. Take a look at the wait method it has these lines while @ie.busy and until @ie.readyState == READYSTATE_COMPLETE do you might be able to remove or the other Paul - Original Message - From: Nathan [EMAIL PROTECTED] To:

Re: [Wtr-general] Is there a way to over ride Watir's checking if IE is busy?

2007-02-01 Thread Nathan
To add a little bit of information, when I use irb to test my script's actions, I don't get timeouts, but when I am running the script, which activates a javascript menu, then clicks on a link in that menu, and I am on a page that is streaming video, I continually get timeouts, even when the

Re: [Wtr-general] url for link

2007-02-01 Thread Željko Filipin
On 1/31/07, Bret Pettichord [EMAIL PROTECTED] wrote: ie.link(:html, /contract_id=227/).click Once more, this is so cool. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Is there a way to over ride Watir's checking if IE isbusy?

2007-02-01 Thread Adam Reed
So basically the test never starts because IE is never finished loading the items on the page? I've witnessed this also with slow-loading images on our staging servers. IE hangs out (no pun intended) until the final image shows and then tests away. It may be a low-tech resolution, but if I'm

Re: [Wtr-general] url for link

2007-02-01 Thread Željko Filipin
On 1/30/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote: a href=# onclick=new Ajax.Request('/data_entry/ajax_add_term/131?contract_id=227', {asynchronous:true, evalScripts:true}); return false;add a term/a Can regular expressions be used with xpath? This does not work. ie.link(:xpath,

Re: [Wtr-general] Is there a way to over ride Watir's checking if IE is busy?

2007-02-01 Thread John Lolis
Yes, i think this should work. I have never tried this and I can assure you that it will break way more things then it could ever fix :) module Watir class IE def wait puts 'hello' end end end

Re: [Wtr-general] hi, not able to use assert

2007-02-01 Thread Maloy kanti debnath
hi, thanks for your reply. I have used your code but after using it also i got an error c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__': No such file to load -- /apps/ruby/lib/ruby/1.8/test/unit (LoadError). When I modified your code as the following require

Re: [Wtr-general] How to handle the popup security alert

2007-02-01 Thread Jason He
The following code shows a case using clearSecurityAlertBox(). --- require 'watir' # the watir controller include Watir require 'watir/winClicker' $ie = Watir::IE.new $ie.goto('https://10.101.4.69:4443') # create a new

Re: [Wtr-general] Everyday Scripting with Ruby (the book)

2007-02-01 Thread Walter Kruse
I've ordered one also. I was a reviewer for the early drafts of the book, which were very good, I'm looking forward to seeing how the final version came out! Ditto. **

Re: [Wtr-general] Watir with Ajax

2007-02-01 Thread Naga Harish Kanegolla
I can't send a link to my application as it is in my local host. I am sorry for this. The select option will be generating after i click on the link. Its ajax stuff. So that select can't be shown in the html. It is generating after the whole page is loaded. So wat should be done for such type

Re: [Wtr-general] How to handle the popup security alert

2007-02-01 Thread Jason He
The following code shows a case using push_security_alert_yes() --- require 'watir' # the watir controller include Watir require 'watir/WindowHelper' $ie = Watir::IE.new $ie.goto('https://10.101.4.69:4443') helper =

Re: [Wtr-general] Watir with Ajax

2007-02-01 Thread Prema Arya
You can wait in a loop till the select box is loaded or use some kind of indicators like in gamil the top right corner of window reads Loading... when the mails are being loaded. In your case you can wait for the control itself #while the control exists is false sleep

Re: [Wtr-general] url for link

2007-02-01 Thread Prema Arya
Hi, You can't use regular expression in xpath with XPATH 1.0, you can use it in XPATH 2.0 and rexml supports only xpath 1.0. You can use string operations like substring, string before, string after though. http://www.w3.org/TR/xpath#section-String-Functions. Prema On 2/2/07, Željko Filipin