[wtr-general] Re: Watir Attach and Find Methods

2010-05-04 Thread dholcombe
Running as admin doesn't solve the issue. As noted in the original post *The attach and find methods CANNOT find an IE instance that was opened *via clicking a link from another instance of IE started using “Run as *Administrator” or from a Run as Administrator command prompt run water *script. *

[wtr-general] Re: getting data from a cell within a div based on span text value

2010-05-04 Thread watirRookie
hi Felipe, Thank you very much. using XPath solved the issue. On May 3, 3:30 pm, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello, You can use a XPath expression to get to the element you want. This worked for me, using the HTML piece of code you provided: -- require rubygems require

[wtr-general] Watir connection to oracle

2010-05-04 Thread Ivan Chung
Hi guys, some quick question here, i will need to connect to oracle database and execute some queries to compare the results. Is there a specif watir scripts to do that or that is ruby code to handle this? Appreciate if there is example provided. Thanks in advance Ivan -- Before posting,

Re: [wtr-general] Watir connection to oracle

2010-05-04 Thread Felipe Knorr Kuhn
Hello, Ivan, I used this piece of code under Windows a while ago: require 'oci8' require 'dbi' connection = OCI8.new( 'username', 'password', 'ip:port/scheme') cursor = connection.exec('select * from table') while r = cursor.fetch_hash r.each {|key, value| puts #{key} is #{value} } end puts

[wtr-general] Re: Watir connection to oracle

2010-05-04 Thread Ivan Chung
Thanks for your quick reply, will give a try. On May 4, 10:35 pm, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello, Ivan, I used this piece of code under Windows a while ago: require 'oci8' require 'dbi' connection = OCI8.new( 'username', 'password', 'ip:port/scheme') cursor =

[wtr-general] i cannot run the scripts on internet explorer[i do have ie8]

2010-05-04 Thread Cristina
Hi, I am new to ruby/watir. I managed to write a script and running on Firefox. Though I have no idea why the script is not working for internet explorer. Do we have to install any ads on for internet explorer? Using in irb: require 'watir' Watir::Browser.default = ie Watir::Browser.new I

Re: [wtr-general] i cannot run the scripts on internet explorer[i do have ie8]

2010-05-04 Thread windy
I think ruby1.9's win32api has some problem, so you get the error. please try to use ruby 1.8.6 . hope this help you. 在 Wed, 05 May 2010 00:31:38 +0800,Cristina cristina.toro...@gmail.com 写道: Hi, I am new to ruby/watir. I managed to write a script and running on Firefox. Though I

Re: [wtr-general] Re: Watir Attach and Find Methods

2010-05-04 Thread Ethan
The post said IE is run as administrator. I said to run ruby as administrator. Ruby has to have at least as high an integrity as the IE to which it is trying to attach. On Mon, May 3, 2010 at 14:19, dholcombe dholco...@hotmail.com wrote: Running as admin doesn't solve the issue. As noted in the

[wtr-general] Re: Watir Attach and Find Methods

2010-05-04 Thread dholcombe
The script is being run as admin as noted. To be specific By running Start Command Promt with Ruby as administrator the script fails to attach to the window opened by ie.link. I can verify that this is the case on my installation which is similar to the original poster: ruby 1.8.6 (2010-02-04