[wtr-general] Watir with JRuby

2011-01-27 Thread Chandu80
Hello All, I have JRuby installed on my system.I want to install watir gem.Does JRuby support watir installation? If yes what is the exact procedure to do so? Regards Chandrika -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Watir Installation

2011-01-26 Thread Chandu80
Hello All, A short query on watir instllation. I have jruby,rails and ruby installed on my machine.I now want to install watir for testing purpose.However when I do a gem install watir I get an error as follows ERROR: http://rubygems.org/ does not appear to be a repository Building native

[wtr-general] Identify IP address

2010-11-07 Thread Chandu80
Hello All, I want to write a script by which I can open up a text file,scan through it,find the line which contains the word 'test_site',get the IP address corresponding to that word, replace that IP with another IP address and then save and close the file. Are there any commands in Ruby to

[wtr-general] Mapping Excelsheet columns using ruby

2010-07-08 Thread Chandu80
Hello All, I have written a script in which I am taking in values from a spreadsheet and inputting them in to fields on a webpage. The values are being taken from a column (say column O) of the spreadsheet. Alongwith this I also want to gather the values corresponding to column G of the

[wtr-general] How to insert a blank value from spreadsheet into a textbox on webpage.

2010-06-14 Thread Chandu80
Hi All, I have written a script which requires me to insert a blank value into a textbox on webpage. The script should take this blank value from the spreadsheet and then insert it into the textbox.(As this is a part of the negative test scenario) When I leave a column in a spreadsheet blank and

[wtr-general] Nil Class error

2010-06-03 Thread Chandu80
I have a piece of code as follows. Here after the Save button is clicked a pop-up appears with an OK button. The pop-up needs to be clicked(on the OK button) or closed for the script to run further. This piece of code is run in iterations.It runs fine for a few iterations(say 2 or 3) and then

[wtr-general] Re: Gem:Load Error

2010-04-26 Thread Chandu80
Hi Zeljko, The script wasn't running because of a proxy issue. I tried installing gemcutter behind proxy first using the below command gem install gemcutter -v 0.2.1 -p http://myproxyname:portno. I then ran the script. It worked fine :) Regards Chandrika On Apr 23, 3:25 pm, Chandu80

[wtr-general] Gem:Load Error

2010-04-23 Thread Chandu80
Hi All, I am trying to run a code from the following path in my machine C:\Lmg_test\ruby\22.04.2010\driveragent_table_info21.rb I get the following error c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem gemcutter (= 0.2.1) (Gem::LoadError)

[wtr-general] Unable to install ruby-debug-ide

2010-04-23 Thread Chandu80
Hi All, When I try to install the gem ruby-debug-ide using the command gem install ruby-debug-ide I get the following error. ERROR: http://rubygems.org/ does not appear to be a repository ERROR: could not find gem rubygems-update locally or in a repository Considering the fact that the gem

[wtr-general] Re: Gem:Load Error

2010-04-23 Thread Chandu80
Hi Zeljko, ruby -v returns ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] gem -v returns 1.3.6 Thanks Chandrika On Apr 23, 2:30 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Apr 23, 2010 at 11:24 AM, Chandu80 chandu.she...@gmail.com wrote: `report_activate_error

[wtr-general] Using Watir::Simple methods

2010-01-28 Thread Chandu80
I have a code written in ruby as follows: require 'watir/ie' #require 'watir/process' require 'test/unit/assertions' require 'watir/watir_simple' #include Watir::Simple test_site = 'http://google.co.in' $ie = Watir::IE.new $ie.goto(test_site) $ie.maximize $ie.click_button_with_name(btnG) where

[wtr-general] Pop-up blocking script

2010-01-17 Thread Chandu80
I have a login function written in ruby as follows def login(link,login,password,g) #href_status = href.empty? #puts #{href_status} dialogue_text ='Connect to ' + link p = Watir.autoit.WinWait(dialogue_text,'',30) #p = Watir.autoit.WinWait(Connect to 10.130.92.4,'',30)

[wtr-general] Re: No Matching Window Exception.

2010-01-11 Thread Chandu80
Hi, I am sorry I made a mistake in writing the test_site.Let me re-type the code and the error that i am getting require 'watir/ie' require 'watir/process' test_site = 'http://www.google.com' $ie = Watir::IE.new $ie.goto(test_site) title = $ie.title putsTitle is #{title} putsAttach to the same

[wtr-general] No Method Error

2009-05-04 Thread Chandu80
Hi, The code that I have written is as shown below.When I try to run this script,No Method Error is shown at the line where '#Error shown here' is written.I have gone through various posts but am not able to figure out the exact cause for this error.Please can anybody help me with this.It is not

[wtr-general] Unknown Object Exception In Watir script

2009-04-23 Thread Chandu80
I am testing a website.I have written the following line in the script $ie.frame(:index, 3).frame(:index, 3).button(:name, 'tC?1').click for the button 'clear' I get the following error while running the script c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_ex