Re: [Wtr-general] Handling popup message

2007-05-11 Thread Kui Zhang
Hello Charley, I am having a difficult time with handling popup window too. I followed your suggestion and used the second example. I just want to click cancel button on the file download window to close it. The script run complete with Exit code: 0 (please see the code below), but the file

Re: [Wtr-general] Unable to load watir/contrib/enabled_popup

2007-05-11 Thread Kui Zhang
My water gem is installed in C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1164\Watir I verified the water version and ruby path. They looked correct. I restarted machine again and now seems working. When run script with: require 'watir' require 'watir\contrib\enabled_popup' … Do not receive t

Re: [Wtr-general] Unable to load watir/contrib/enabled_popup

2007-05-11 Thread Charley Baker
Where are you running the last command from and where is your watir gem? open up irb at the command line and type the following: irb>require 'watir' irb>puts Watir::IE::VERSION My guess is it's still 1.4 something. Exit irb and type this: gem list --local watir or check your path, at the comma

Re: [Wtr-general] Unable to load watir/contrib/enabled_popup

2007-05-11 Thread Kui Zhang
Thanks charley! Here is what I did: 1. Uninstall Watir 1.4 2. Uninstall Ruby 3. Restart machine 4. Install Ruby 5. gem install --local watir to install gem 1.5 After restart machine, I still see the same error. Did I miss something? Kui ___ Wtr-genera

Re: [Wtr-general] Unable to load watir/contrib/enabled_popup

2007-05-11 Thread Charley Baker
looks like you didn't uninstall watir 1.4.1, the error is coming from site_ruby where that's installed. Uninstall Watir 1.4.1 and try it again. -c On 5/11/07, Kui Zhang <[EMAIL PROTECTED]> wrote: Hello, After I installed watir-1.5.1.1164.gem, I still see this error message:c:/ruby/lib/ruby/si

Re: [Wtr-general] Unable to load watir/contrib/enabled_popup

2007-05-11 Thread Kui Zhang
Hello, After I installed watir-1.5.1.1164.gem, I still see this error message:c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- enabled_popup (LoadError). Need help. Thanks! Kui ___ Wtr-ge

Re: [Wtr-general] Web Service client call from Ruby.

2007-05-11 Thread Chris McMahon
On 5/11/07, Paul Rogers <[EMAIL PROTECTED]> wrote: > the unknown element : {} html probably means you are getting an html > response back from the server - visit the url with a browser to make sure > you are not getting an error message Yes. The target for your connection should point to an XML p

Re: [Wtr-general] Unable to locate object using :url => /{variable}/

2007-05-11 Thread Ravi
If testing_URL is a variable, I guess, it should be used without the slashes "//". Or, this also may work: $ie.link(:url => /#{testing_URL}/, :text => /More.../).click ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/l

[Wtr-general] Unable to locate object using :url => /{variable}/

2007-05-11 Thread Jason
Really quick one... Trying to identify and click a link on a page, using the following: $ie.link(:url => /testing_URL/, :text => /More.../).click Where "testing_URL" is a variable I'm passing the script in a loop. In the first instance, the variable value is *search-requests*. The actual l

Re: [Wtr-general] Using an ie.table.each do |row| loop when thepagein the ie window refreshes itself

2007-05-11 Thread Bret Pettichord
Ethan Jewett wrote: > Ticket entered: http://jira.openqa.org/browse/WTR-149 > > Ian's point about 0-indexing vs. 1-indexing is noted in the ticket. > Perhaps this should only be a candidate for inclusion in Watir 1.6? > I concur. Thanks for the suggestion. Bret _

Re: [Wtr-general] FireWatir doesn't ignore if it doesn't exists but

2007-05-11 Thread Bret Pettichord
I was confused about your problem. It now looks like this is a FireWatir bug. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir/FireWatir merge/refactoring suggestion: down_load_time

2007-05-11 Thread Bret Pettichord
Please submit this in Jira. I plan to start making changes such as this (i.e. that will cause compatability problems with prior versions) in Watir 1.6. Chris McMahon wrote: > I had occasion today to measure page load times in anger using > FireWatir. I don't have a regular Watir installation ha

Re: [Wtr-general] Web Service client call from Ruby.

2007-05-11 Thread Paul Rogers
the unknown element : {} html probably means you are getting an html response back from the server - visit the url with a browser to make sure you are not getting an error message Paul - Original Message - From: "barry" <[EMAIL PROTECTED]> To: Sent: Friday, May 11, 2007 10:16 AM Subje

Re: [Wtr-general] Web Service client call from Ruby.

2007-05-11 Thread barry
I tried the approach mentioned in the link before. It didn't really work. Right calling "create_rpc_driver". i got following error. (before I event have chance to set the basic auth information) irb(main):009:0> @soap=SOAP::WSDLDriverFactory.new(url).create_rpc_driver warning: peer certificate w

Re: [Wtr-general] Running test script once for each datarow in

2007-05-11 Thread Brown, David
Vipul, You can find examples of working with excel here: http://wiki.rubygarden.org/ruby/page/show/ScriptingExcel Or, there's a library with an example watir test script I posted on the watir contributions wiki which hides some of the complexities of working with excel: http://wiki.openqa.org/displ

Re: [Wtr-general] Running test script once for each datarow in excel

2007-05-11 Thread Ian Webb
This is very simple with a CSV file: require 'csv' CSV::Reader.parse(File.open(ARGV[0], 'rb')) do |row| #open the filename given as first command line argument userid = row[0] #note that the CSV module index starts at 0 passwd = row[1] loginToSite(userid,passwd) #whatever your login code is

Re: [Wtr-general] Running test script once for each datarow in excel

2007-05-11 Thread Charley Baker
David Brown posted an interface to Excel on the Watir user contributions area with an example usage case that steps through rows: http://wiki.openqa.org/display/WTR/Excel+interface+class -Charley On 5/11/07, Vipul <[EMAIL PROTECTED]> wrote: i am testing a site which has login page. i want to

Re: [Wtr-general] Solution for FAQ "Using key/value pairs" not working

2007-05-11 Thread Charley Baker
Looks like user_Name is not defined for your LoginInput class. Check your casing and make sure it exists there. Might be something like user_name, not user_Name. Otherwise we'd have to have more information on your LoginInput class. -Charley On 5/11/07, Vipul <[EMAIL PROTECTED]> wrote: now i a

Re: [Wtr-general] xpath question (not Watir related)

2007-05-11 Thread Angrez Singh
Hi, Can you give this a try? e = REXML::Document.new(ie.text).root.elements e["/tokens/ShortUrl[starts-with(@url, "resetpassword.aspx?m=7fb83717-9606-4022-bd4e-67b6f6582ada"].attributes["url"] As you already know value of 'm' in query string you can create a string a give it a try. - Angrez

[Wtr-general] New Version of Internet Explorer Developer Toolbar

2007-05-11 Thread Željko Filipin
Read more: http://blogs.msdn.com/ie/archive/2007/05/10/Internet-Explorer-Developer-Toolbar-_2D00_-Get-It-Now_2100_.aspx Get it: http://www.microsoft.com/downloads/details.aspx?FamilyId=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en Zeljko -- ZeljkoFilipin.com ___

[Wtr-general] xpath question (not Watir related)

2007-05-11 Thread Zeljko
I have xml that looks like this. I need to get value of "hash" attribute (BF8E8F60E722E92C7ED8303916591AB4). I know the value of "m" url parameter (inside "url" attribute) (7fb83717-9606-4022-bd4e-67b6f6582ada), but I do not know the value of "code" url parameter. I know how to get attri

[Wtr-general] Running test script once for each datarow in excel

2007-05-11 Thread Vipul
i am testing a site which has login page. i want to automate login with different user credentials each time. i want username and pwd values to come from excel sheet or input.rb whichever possible. Does anyone has the code or suggestion for implementing this. ___

Re: [Wtr-general] FireWatir doesn't ignore if it doesn't exists but

2007-05-11 Thread Eoin
html of the login page looks like: http://www.w3.org/1999/xhtml"; > Remote Access Portal | Login Hello [EMAIL PROTECTED] Click the button to log in: ___ Wtr-general mailing lis

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-11 Thread gary
Great thanks. That's got rid of the error message, but it still appears to be running through twice and therefore stopping midway through. The 'sign in' click takes you through to sign in page. Th continue button should cause the alert to appear. I then need to capture the text within the popup.

Re: [Wtr-general] Solution for FAQ "Using key/value pairs" not working

2007-05-11 Thread Vipul
now i am getting following exception 'undefined method `user_Name' for LoginInput:Class (NoMethodError)' in main source file contains the code require 'Input.rb' $ie = IE.new() $ie.goto(test_site) $ie.text_field(:id,"txtLoginID").set(LoginInput.user_Name) ___

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-11 Thread Angrez Singh
Hi, Make sure you escape '\' character in the file name by putting another '\' character in front of it. - Angrez On 5/11/07, gary <[EMAIL PROTECTED]> wrote: Thanks again for your help. i am getting the following load error - ubygems.8gemswatir- 1.5.1.1164unittestsjscriptExtraAlert.rb (Load

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-11 Thread gary
Thanks again for your help. i am getting the following load error - ubygems.8gemswatir-1.5.1.1164unittestsjscriptExtraAlert.rb (LoadError) require 'watir' # the controller include Watir require 'watir/WindowHelper' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'dl/win

Re: [Wtr-general] How to handle pop menu clicking on right mouse button?

2007-05-11 Thread Željko Filipin
Hi Edwin, Please send part of HTML that causes popup menu to appear. Željko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Solution for FAQ "Using key/value pairs" not working

2007-05-11 Thread aidy lewis
> class initialValues Use an upper case 'I' for class name. @@ means class variable. Aidy On 11/05/07, Vipul <[EMAIL PROTECTED]> wrote: > hi > > i have tried following > > class initialValues >@@user_name = 'atilla' >@@last_name = 'ozgur' > end > save in intial.rb file. > > But when i