Re: [Wtr-general] watir execution from webserver

2007-03-26 Thread eisdrache
alright, well i realized that when the watir script is executed it does create an instance of iexplore.exe but the script dies when it attempts to execute ie.goto(site). ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman

Re: [Wtr-general] handling custom HTML attribute

2007-03-26 Thread Željko Filipin
On 3/24/07, x y <[EMAIL PROTECTED]> wrote: Done All of this worked for me (watir 1.5.1.1158). ie.cell(:html, /iwname/).flash ie.cell(:html, /ModalPageWrapper:okClicked/).flash ie.cell(:html, /iwname="ModalPageWrapper:okClicked"/).flash -- ZeljkoFilipin.com ___

Re: [Wtr-general] clicking on menu

2007-03-26 Thread Željko Filipin
Vikash, I could not find OnMouseOver anywhere in html that you sent. In any case you can fire that event with this slightly modified code from FAQ page ( http://wiki.openqa.org/display/WTR/FAQ#FAQ-TriggeringJavaScriptevents) ie.text_field(:name, "my_field").fire_event("OnMouseOver") -- ZeljkoFi

[Wtr-general] Reading from excel files (basic)

2007-03-26 Thread Nicola Kennedy
Hi, I am completely new to WATIR, and don't have much programming experience so forgive the simplicity of this question! I am just learning the basics and have created a script that calls an excel file which has a column of web addresses. I have got the scripts to read in the first value from A

Re: [Wtr-general] Reading from excel files (basic)

2007-03-26 Thread sathees
$data = [] $data = worksheet.Range('a1:z1')'text' # The data is in cell a1. excel'Visible' = false # hide the spreadsheet from view workbook.close excel.Quit # Insert the data read from the spreadsheet into the text field #$ie.text_field(:name, 'TEST').set $data $data.length do |x| ie.goto('http:/

Re: [Wtr-general] Control windows dialog box

2007-03-26 Thread sathees
h = $ie2.enabled_popup() why do this through an unknown name Exception??? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Reading from excel files (basic)

2007-03-26 Thread Nicola Kennedy
Hi, Have done this, but am getting error: 1) Error: test_recorded(TC_recorded): NoMethodError: undefined method `length' for nil:NilClass testnic2.rb:50:in `test_recorded' Have copied my script again in case I've done something wrong? excel = WIN32OLE::new('excel.Application') wor

Re: [Wtr-general] Reading from excel files (basic)

2007-03-26 Thread sathees
try this @mydata = worksheet.Range('a1:a4').value puts @mydata # to c wether the content is in the array. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Reading from excel files (basic)

2007-03-26 Thread Nicola Kennedy
Hi, I did this and the logs showed the websites as follows: www.google.co.uk www.freeuk.com www.bbc.co.uk www.manilow.com nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil The test then just ends, with no errors, but the test doesn't take me to the four web

Re: [Wtr-general] Watir can't find IEnum interface

2007-03-26 Thread Brad
I'm seeing the same error on my environment. Here is the same code along with the error. Code: require 'rubygems' require 'watir' include Watir #require 'watir_ext' # extension to watir for 'visible?' #include Watir require 'test/unit' require 'csv' puts Watir::IE::VERSION # check for WAT

Re: [Wtr-general] Reading from excel files (basic)

2007-03-26 Thread Charley Baker
Hi Nicola, you could try something like this: excel = WIN32OLE::new('excel.Application') workbook = excel.Workbooks.Open('C:\Documents and Settings\kennedyn\My Documents\WATIR_RUBY\excel _testdata2.xls') worksheet = workbook.Worksheets(1) #get hold of the first worksheet

[Wtr-general] WATiR work in San Francisco

2007-03-26 Thread Bob
National retailer has an immediate need for a test engineer with experience in Ruby/WATiR. Work on a high profile J2EE based Ecommerce effort. Lead type role, involving mainly test automation. 6-9 months downtown. Calls or email are fine. Thanks, Bob Lepesh JD Strategies 650-941-2900 Bob

Re: [Wtr-general] Watir can't find IEnum interface

2007-03-26 Thread Chris McMahon
I run Brad's code with no problem (thanks for the example!). Googling, I find that "IEnum interface" is an error coming from Ruby's WIN32OLE library. The root cause seems to be some kind of error in the interface between Ruby and Windows on the particular machine. One very suggestive issue is th

Re: [Wtr-general] Watir can't find IEnum interface

2007-03-26 Thread Brad
Thanks Chris, I just did the following and see the same error: * uninstalled Ruby 186-25 * reboot PC * installed Ruby 186-25 using Windows installer * run latest Watir gem 1.5.1.1158 This use to work on an earlier version Ruby (185-21) and Watir (1.5.1.1136) but left this for a while (over a mo

Re: [Wtr-general] Watir can't find IEnum interface

2007-03-26 Thread Chris McMahon
Sorry I can't help more. I'm using ruby 1.8.5 (2006-08-25) and Watir 1.5.1.1158, WinXP. You might try playing with OLE directly. For instance, try to move object from Paint to Word, or something. See if you can get the same error from pure MS applications. -C On 3/26/07, Brad <[EMAIL PROTECTED

Re: [Wtr-general] Watir can't find IEnum interface

2007-03-26 Thread Kevin Rutherford
Hi Chris, Sorry I haven't been back on this one: I only have access to the machine on which I have the problem on Thursdays (long story), and I missed last week's session altogether. On 26/03/07, Chris McMahon <[EMAIL PROTECTED]> wrote: > I run Brad's code with no problem (thanks for the example!)

Re: [Wtr-general] Watir can't find IEnum interface

2007-03-26 Thread John Lolis
Ruby 182-15, Watir 1.5.1.1136 works fine ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] watir execution from webserver

2007-03-26 Thread Bill Agee
One bare-bones solution for this problem is to use the Ruby gserver library to start your tests - see the code snippets in this post: http://www.mail-archive.com/wtr-general@rubyforge.org/msg07247.html The idea is to leave a little Ruby script listening on the test client, and when someone send

Re: [Wtr-general] watir execution from webserver

2007-03-26 Thread Adam Reed
Consider me interested. I've had this concept on the backburner for a while, but haven't had the time to get ahead on the code while working on tests. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Agee Sent: Monday, March 26, 2007 2:55 PM To: wtr-

Re: [Wtr-general] watir execution from webserver

2007-03-26 Thread Chris McMahon
> In all it only took 5 rails controllers (less than 100 lines total) and 5 or > 6 separate views. (And I'm sure it could be compacted even more.) I came > out of the experience pretty impressed with rails. If there's interest I can > try to clean up the code and post it. I'm interested as w

Re: [Wtr-general] Watir can't find IEnum interface

2007-03-26 Thread Brad
Thanks Chris, FYI, I uninstalled Ruby 186-25 and Watir 1.5.1.1158 from this machine that fails. The OLE version from this prior install was showing 0.7.1. I loaded Ruby 185-21 and Watir 1.5.1.1136 on my failing machine and still see the problem. I have this same version (Ruby 185-21 / Watir