[wtr-general] Re: no such file to load -- watir (LoadError)

2008-12-09 Thread parul upadhyay
Hi Pallavi, I'm getting the same error,after using rubygems it is giving error for watir. I wanna ask u that when you have done gem update --system and then installed a local watir gem,did any error appeared?i'm writting it in command prompt. please check if i've done correctly or not. Microsoft

[wtr-general] Re: Need to pick amount from the script

2008-12-09 Thread Divya
Sir, This is not working. Kindly help me out on this. thanks divya On Dec 5, 7:03 pm, Moochie <[EMAIL PROTECTED]> wrote: >  if $ie.div(:text, /Balance:/).exists? >     ksh = $ie.d(:text, /Balance:/).text.split(" ") >     puts ksh[2] > end > > On Dec 5, 4:51 am, Divya <[EMAIL PROTECTED]> wrote: >

[wtr-general] LoadError

2008-12-09 Thread Parul
hi, Is there any remote server setting required for watir? irb(main):001:0> irb irb#1(main):001:0> irb require "watir" (irb#1):1: warning: parenthesize argument(s) for future version LoadError: no such file to load -- watir from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 3

[wtr-general] Re: LoadError

2008-12-09 Thread Tony
Hi Parul, try running this at the cmd ... gem update --system gem install watir After everything is installed try running in irb. Also once you start irb from cmd or run dialog .. you dont need to enter irb within it. This is what it will look like in irb. irb(main):001:0> require "watir" => tr

[wtr-general] Re: watir help: click_no_wait doesn't actually click

2008-12-09 Thread Divya
It happens only on Vista On Dec 9, 2:10 am, Bret Pettichord <[EMAIL PROTECTED]> wrote: > Larry, > > We've had multiple reports of this problem with click_no_wait, but I > have not been able to reproduce them. > > Bret > > [EMAIL PROTECTED] wrote: > > Hey all - > > > I'm trying to dismiss popups a

[wtr-general] Re: "Find Pop-up text and close" function is not working

2008-12-09 Thread Prince3105
Hi Mates, After a long searching i got the solution. Instead of using complicated functions and methods, i use simple code to retrieve the text from a Web Dialog. require 'watir/ie' require 'watir\contrib\enabled_popup' require 'watir/dialog' require 'watir/winClicker' @ie = Watir::IE.new @ie.

[wtr-general] Re: LoadError

2008-12-09 Thread Parul Upadhyay
Hi Tony, 1) This is what I'm getting when run it at cmd Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\parul.upadhyay>gem update --system Updating RubyGems ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR

[wtr-general] Re: no such file to load -- watir (LoadError)

2008-12-09 Thread pallavi shashidhar
Hi, I was able to do an update and install watir successfully. Only problem with running the scripts. As for your case, i think you could not connect to the server for update. On Tue, Dec 9, 2008 at 1:33 PM, parul upadhyay <[EMAIL PROTECTED]> wrote: > Hi Pallavi, > I'm getting the same error,afte

[wtr-general] Re: Know how to make a screencast?

2008-12-09 Thread Pete Dignan
Charley and Alex - thanks! I'll follow up with both of you in the coming week or so about how we can proceed. Of course anyone else with interest is encouraged to jump in too. Pete On Dec 8, 4:26 pm, "Charley Baker" <[EMAIL PROTECTED]> wrote: > We've already taken on screencasts:http://github.

[wtr-general] Re: watir help: click_no_wait doesn't actually click

2008-12-09 Thread Bret Pettichord
Is this true for the others seeing this problem as well? I've tested this on Vista and haven't seen it, so I know there is more to it, but I could believe that it is something Vista specific. Bret Divya wrote: > It happens only on Vista > > On Dec 9, 2:10 am, Bret Pettichord <[EMAIL PROTECTED]

[wtr-general] Re: LoadError

2008-12-09 Thread Charley Baker
You're behind a proxy, try this: http://wiki.openqa.org/display/WTR/Installing+ruby+gems+from+behind+proxy+firewall Charley Baker blog: http://charleybakersblog.blogspot.com/ Project Manager, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Tue, Dec 9, 2008 at 3:42 AM, Parul Upad

[wtr-general] Re: Know how to make a screencast?

2008-12-09 Thread Paul Rogers
using iShowYou on a mac is an easy way to record voice and screen actions. Its also only $20 Since its easier to take a screenshot of a windows app runing inside a vm on a mac, than it is to take a screen shot in windows, Im guessing iShowYou will be easier too. Im happy to give it a go, even if

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-09 Thread Michael Hwee
What is the statement after the click_no_wait? If you use handle_popup, add some more seconds to wait; especially on slow machine. What I know is, the click_no_wait actually happens. But, when the browser or server is being ready to respond, your next code statement executes. Try putting -- s

[wtr-general] Re: watir help: click_no_wait doesn't actually click

2008-12-09 Thread Michael Hwee
I have vista home edition, use a lot of click_no_wait. But, did not see the issue. Might need some sleep() after the click_no_wait. Michael - Original Message From: Bret Pettichord <[EMAIL PROTECTED]> To: watir-general@googlegroups.com Sent: Tuesday, December 9, 2008 7:55:21 AM Subj

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-09 Thread [EMAIL PROTECTED]
Michael - I thought of that already and put in a click_no_wait that just selected a link. Nothing happened, so it wasn't just the popup- handling code. What would a fire_event command look like, exactly? Right now, the line that has the problem for me is BROWSER.button(:id, "Btndelete").click_n

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-09 Thread Ning Cao
Also it happened to me on IE6, I did not upgrade my browser, just upgraded to watir 1.6.2 then it's broken. -Original Message- From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 8:59 AM To: Watir General Subject:

[wtr-general] Please Explain core_tests.rb

2008-12-09 Thread Vivek P.Netha
Hello, my Watir fanatic brethren... I have been an avid Watir user for more than two years now. But I've mostly been helping with small web applications, with consequently small test bases, on and off. I have a basic question to ask of you experts out there. I'd like someone to explain to me,

[wtr-general] Re: Need to pick amount from the script

2008-12-09 Thread Chuck vdL
it's possible the regular expression isn't matching .. The first thing I'd do to debug is remove the split and just puts ksh to see what you 'have' in the string before you try to split it. eg for debugging purposes try if $ie.div(:text, /Balance:/).exists? ksh = $ie.d(:text, /Balance:/).

[wtr-general] Re: Need to pick amount from the script

2008-12-09 Thread Chuck vdL
gah just noticed typo in the below.. the method is of course .text not .txt as I've typed it On Dec 9, 1:20 pm, Chuck vdL <[EMAIL PROTECTED]> wrote: > it's possible the regular expression isn't matching .. > > The first thing I'd do to debug is remove the split  and just puts ksh > to see wh

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-09 Thread Michael Hwee
Are you saying when you use 'click', the button was clicked properly? The only different between 'click' and 'click_no_wait' is 'wait' statement is removed. Can you check to be made sure that is an 'Input', rather than 'a' html tag? - Original Message From: "[EMAIL PROTECTED]" <[EMA

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-09 Thread larryni...@gmail.com
That's correct: the click method succeeds where the click_no_wait method fails. I'm not entirely sure how to go about checking that, so can you give me more details? Or, equally, can you provide a button or a link that you know for sure to be classed as Input rather than with the tag? Because if

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-09 Thread Bret Pettichord
Michael Hwee wrote: > The only different between 'click' and 'click_no_wait' is 'wait' statement is > removed. > Actually no. This is not the only difference. The big difference is that with click_no_wait the click method is actually executed in a separate process that attaches to the window

[wtr-general] Re: LoadError

2008-12-09 Thread Parul Upadhyay
Hi charley, Thanks!! I think half of my problem is solved. Now that load error is not coming. However things are still not working fine. This is what I'm getting now. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\parul.upadhyay

[wtr-general] Modal Dialog goto with no wait

2008-12-09 Thread Sean
Hello All -- I'm trying to launch a modal dialog using the following code. I believe I have to tell the goto to not wait for the page to finish loading but I cant find out how. if it was a button, I could use click_no_wait. Is there a goto_no_wait or a way I can tell Watir to not wait. Thanks i

[wtr-general] Re: Modal Dialog goto with no wait

2008-12-09 Thread LFIdnl
In these cases I execute command in another thread. If anybody suggest another usefull method I will be happy :) . Try this: ... thr = Thread.new { ie.goto "javascript:OpenPage();" } sleep(3) #time to wait of javascript popup thr.kill puts ie.modal_dialog.html # now must gets here On 10 дек