[wtr-general] Re: no such file to load -- watir (LoadError)
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 Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\parul.upadhyaygem update --system Updating RubyGems ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2) (http://gems.rubyforge.org/yaml) C:\Documents and Settings\parul.upadhyaygem install watir ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: could not find gem watir locally or in a repository Parul On Tue, Dec 9, 2008 at 12:17 PM, pallavi shashidhar [EMAIL PROTECTED]wrote: I get the same problem even after require 'rubygems' error is at the line where i have require 'watir' On Tue, Dec 9, 2008 at 1:59 AM, anna barbara ostrowska [EMAIL PROTECTED] wrote: Hi there! Add to script require 'rubygems', I had the same problem and it helps :) 2008/12/8 pallavi shashidhar [EMAIL PROTECTED] Hi there, I have installed Ruby 1.8.6-26 and did a gem update --system and then installed a local watir gem . I installed watir using gem install watir -dir /watir1.5.6 When i try to run the scripts, i get the following error: C:/Ruby1.8.6-26/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- watir (LoadError) from C:/Ruby1.8.6-26/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' Need to know what could be the problem. Regards, Pallavi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] LoadError
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: 31:in `ge m_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `re quire' from (irb#1):1 irb#1(main):002:0 Please help me out as it is really urgent. Thanks Parul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: LoadError
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 = true irb(main):002:0 i see that you have started irb again and to run require you are using irb require watir ... is wrong. (just use require watir) -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: watir help: click_no_wait doesn't actually click
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 as described at http://wiki.seleniumhq.org/display/WTR/JavaScript+Pop+Ups, solution #5. The first problem was that watir/contrib/enabled_popup was unhappy, but that was fixed by requiring watir/ie (per another post from this group,http://groups.google.com/group/watir-general/browse_thread/thread/f3d...). Now, though, it gets to the click_no_wait line and apparently does nothing. Or, not quite nothing: when Ruby selects anything, a link or a field or a button or a whatever, it highlights it yellow, and I can see that it's selecting the correct button. It just doesn't click it. In other words, if I use BROWSER.button(:id, Btndelete).click_no_wait nothing happens except the button turns yellow for a split-second; if I use BROWSER.button(:id, Btndelete).click it actually clicks (but then, of course, the popup code never executes). I've got Ruby 1.8 and Watir 1.6.2. Thanks in advance... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Find Pop-up text and close function is not working
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.goto(http://10.1.193.109/itrade/Login.aspx;) @ie.maximize @ie.text_field(:name,txtUserName).set(wcorp) @ie.text_field(:name,txtPassword).set(wcorp123) @ie.button(:name,btnSubmit).click @ie.form(:id,form1).table(:id,tbl0).cell(:id,el6).fire_event (onMouseOver) @ie.form(:id,form1).table(:id,tbl7).cell(:id,el57).click @ie.frame(:id,plFrame).table(:id,PendingPane1_tblPP).button (:id,PendingPane1_btnNew).click @ie.frame(:id,wfFrame).button (:id,PageActionPane_btnSubmit).click_no_wait hwnd = @ie.enabled_popup(10) @ie1 = @ie.modal_dialog puts @ie1.text It retrieves the Web Dialog's text correctly.. Thanks all for your replies.. On Dec 8, 3:39 pm, Prince3105 [EMAIL PROTECTED] wrote: Hi Friends, I have searched enough, but i couldn't get the Modal dialog's error message, so mates please throw some light on this issue. I tried AutoIT.WinGetText but no use. Thanks. On Dec 1, 3:32 pm, Prince3105 [EMAIL PROTECTED] wrote: when i execute the function , popup_text[0] returns nil. Still i am searching for a solution and trying all methods in WinClicker class but not yet received a solution. So please guys give some ways to reach the target. Thanks, Prince3105 On Dec 1, 9:20 am, wesley chen [EMAIL PROTECTED] wrote: In face, you absolutely can search quite great solutions for the problem in the group. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: LoadError
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.upadhyaygem update --system Updating RubyGems ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2) (http://gems.rubyforge.org/yaml) C:\Documents and Settings\parul.upadhyaygem install watir ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: could not find gem watir locally or in a repository 2) This is what I'm getting when I run at irb irb(main):001:0 require watir LoadError: no such file to load -- watir from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge m_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re quire' from (irb):1 irb(main):002:0 -Parul -Original Message- From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tony Sent: Tuesday, December 09, 2008 2:58 PM To: Watir General Subject: [wtr-general] Re: LoadError 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 = true irb(main):002:0 i see that you have started irb again and to run require you are using irb require watir ... is wrong. (just use require watir) -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Know how to make a screencast?
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.com/scudco/taza/wikis. Taza is currently in development, so there are a lot of changes we want to make based on your feedback. As we expand into different oses, there are different tools that you can use to make screencasts. We can post some of them on the Watir wiki. -c Charley Baker blog:http://charleybakersblog.blogspot.com/ Project Manager, Watir,http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Mon, Dec 8, 2008 at 3:37 PM, Pete Dignan [EMAIL PROTECTED] wrote: If you subscribe to this list, you probably know how to use Watir. The more people and companies that know and use Watir, the more valuable your Watir skills become. I have been thinking about ways to get more testers to try Watir, especially people who do not consider themselves to be test automators (yet). What if there were some short (one or two minute) how-to screencasts about how easy it is to get started with Watir? For (a longer) example, see:http://media.railscasts.com/videos/138_i18n.mov We could post those in various places (wtr.rubyforge.com, www.watircraft.com, anyplace anyone would host them) and give potential new users a quick way to become familiar with Watir and gain confidence to download and try it. Does anyone have experience making screencasts like this? Would anyone be willing to take this on - try making the first Watir screencast? Just curious, Pete --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: watir help: click_no_wait doesn't actually click
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] 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 as described at http://wiki.seleniumhq.org/display/WTR/JavaScript+Pop+Ups, solution #5. The first problem was that watir/contrib/enabled_popup was unhappy, but that was fixed by requiring watir/ie (per another post from this group,http://groups.google.com/group/watir-general/browse_thread/thread/f3d...). Now, though, it gets to the click_no_wait line and apparently does nothing. Or, not quite nothing: when Ruby selects anything, a link or a field or a button or a whatever, it highlights it yellow, and I can see that it's selecting the correct button. It just doesn't click it. In other words, if I use BROWSER.button(:id, Btndelete).click_no_wait nothing happens except the button turns yellow for a split-second; if I use BROWSER.button(:id, Btndelete).click it actually clicks (but then, of course, the popup code never executes). I've got Ruby 1.8 and Watir 1.6.2. Thanks in advance... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click
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 -- sleep(20) right after click_no_wait to see anything happens at all for a test. If something happens, you know the browser or server is slow to respond. If nothing happens again, the link/button you click on, may need fire_event. Michael - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: Watir General watir-general@googlegroups.com Sent: Monday, December 8, 2008 12:55:29 PM Subject: [wtr-general] Re: button.Click_No_Wait only highlights the button, does not click XP SP2 Ruby 1.8 Watir 1.6.2 IE 7.0.5730.13 For what it's worth, I'm not an administrator on this machine, which has caused some problems with Ruby in the past but never anything (that I know of, anyway) like this. I also have the IE developer toolbar installed, which is about the extent of the weirdness that I can think of. Anything else I should find out? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click
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] Re: button.Click_No_Wait only highlights the button, does not click 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_no_wait Are you saying I should add after that: BROWSER.button(:id, Btndelete).fire_event If so, won't that defeat the purpose of having a no_wait command? In other words, won't my script then hang instead of executing the popup handler? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Need to pick amount from the script
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 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:/).txt puts ksh end You could even add an else to the if that did something like 'puts ksh div not found' That should tell you if it's findinging the target div, and if it is, what string is being extracted using that regular expression.. That should tell you if it's finding what you want, and able to extract the right stuff into the string. Then you can figure out how to split the string. - If this advice is way below your level of scripting/programming skill, then you need to be more specific when you say 'is not working' in terms of what is actually happening, and what you've tried in terms of debugging. (consider how you would feel if someone came to you to try and diagnose/fix/repro and issue and all you had to work with is this is not working) --Chuck On Dec 9, 12:12 am, Divya [EMAIL PROTECTED] wrote: 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: Hi, View Source is like this: form method=post action=/xxx/xxx div Sent to: -nn br/Amount: Ksh 100.00br/Date: 05/12/2008 03:41 PMbr/Message: br/Transaction ID: 73538br/Balance: Ksh 7487.68 br/ I want to pick that amount Ksh 100 from the script. Iam New to WATIR can please anyone help me in this regard. Thanks divi- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click
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] [EMAIL PROTECTED] To: Watir General watir-general@googlegroups.com Sent: Tuesday, December 9, 2008 8:58:46 AM Subject: [wtr-general] Re: button.Click_No_Wait only highlights the button, does not click 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_no_wait Are you saying I should add after that: BROWSER.button(:id, Btndelete).fire_event If so, won't that defeat the purpose of having a no_wait command? In other words, won't my script then hang instead of executing the popup handler? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Modal Dialog goto with no wait
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 in advance. ie = Watir::IE.new loginURL = login.aspx puts Opening login page (#{loginURL}) ... ie.goto loginURL Watir::Waiter::wait_until {ie.text_field(:name, txtUser).exists?} ie.text_field(:name, txtUser).set username ie.text_field(:name, txtPassword).set password ie.button(:name, cmdLogin).click ie.goto javascript:OpenPage(); puts ie.modal_dialog.html # never gets here --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Modal Dialog goto with no wait
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 дек, 06:42, Sean [EMAIL PROTECTED] wrote: 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 in advance. ie = Watir::IE.new loginURL = login.aspx puts Opening login page (#{loginURL}) ... ie.goto loginURL Watir::Waiter::wait_until {ie.text_field(:name, txtUser).exists?} ie.text_field(:name, txtUser).set username ie.text_field(:name, txtPassword).set password ie.button(:name, cmdLogin).click ie.goto javascript:OpenPage(); puts ie.modal_dialog.html # never gets here --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---