Re: [Wtr-general] stange problem!!!

2007-01-09 Thread Bret Pettichord
liucongying wrote: when the ie go to the site which is http://war3.replays.net; or http://www.sina.com;, then error displayed. Like that: 1) Error: test_rn(TC_rn_suite): WIN32OLERuntimeError: document OLE error code:80070005 in Unknown Access is denied. HRESULT error

Re: [Wtr-general] Syntax for relative attributes

2007-01-09 Thread Bret Pettichord
Christian Kreutzer wrote: On 12/22/06, Bret Pettichord [EMAIL PROTECTED] wrote: So we have consistently urged people to wrap their watir expressions in methods rather than assign them to global variables. This makes it easy to reuse them, and ensure that a correct rebinding occurs on each

Re: [Wtr-general] opening a link in new window

2007-01-09 Thread Željko Filipin
Please post html of that link. In the meantime, see http://wiki.openqa.org/display/WTR/FAQ# FAQ-TriggeringJavaScriptevents -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] stange problem!!!

2007-01-09 Thread liucongying
When does the next version release? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6044messageID=16941#16941 ___ Wtr-general mailing list

[Wtr-general] how to handle the file download window !

2007-01-09 Thread liucongying
I just click the button which can download files, when I click it, the window of file download pop up, how can I control the window to click save or open ,or cancle! - Posted via Jive Forums

Re: [Wtr-general] stange problem!!!

2007-01-09 Thread Željko Filipin
On 1/9/07, liucongying [EMAIL PROTECTED] wrote: When does the next version release? You can make one for yourself today. See http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list

[Wtr-general] hi , few quries with WATIR

2007-01-09 Thread Maloy kanti debnath
hi, i am only few days old to WATIR and my new project is in this tool i have two main doubt 1) how to use assert_equal and for what purpose is it used with a simple example? 2) is there any command which could be used to capture the bitmap image from the web page and compare with the

Re: [Wtr-general] hi , few quries with WATIR

2007-01-09 Thread gdx
Hi, sorry for my english :D 2) in first, you can use screen_capture to take a screenshoot. include this at the top of your script : require 'watir/screen_capture' include Watir::ScreenCapture and read the doc for more details : screen_capture(c:\\toto.jpg) after this, soft exists to

Re: [Wtr-general] Wtr-general Digest, Vol 38, Issue 14

2007-01-09 Thread Dhrubojyoti Biswas
I just downloaded Watir 1.5.1.1127 and I was running some of the tests that I had written using Watir 1.4. But time and again I keep getting a segmentation fault (core dump) at Watir.rb line 1212. Here's the Error Message that i get:

Re: [Wtr-general] hi , few quries with WATIR

2007-01-09 Thread Željko Filipin
On 1/9/07, Maloy kanti debnath [EMAIL PROTECTED] wrote: 1) how to use assert_equal and for what purpose is it used with a simple example? From this list ( http://www.mail-archive.com/wtr-general@rubyforge.org/msg04291.html): require 'test/unit' class Foo Test::Unit::TestCase def

Re: [Wtr-general] hi , few quries with WATIR

2007-01-09 Thread Maloy kanti debnath
hi, thank you for your reply.. which editor you are using and what will you sugest me as a bignner maloy - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6048messageID=16951#16951

Re: [Wtr-general] how to handle the file download window !

2007-01-09 Thread Cain, Mark
require 'watir' require 'watir\contrib\enabled_popup' include Watir # This method grabs the handle of the window and clicks the button # you specify by passing in the button text. # For the File Upload dialog use the user_input parameter # to supply the path to the file you want to

Re: [Wtr-general] Syntax for relative attributes

2007-01-09 Thread John Lolis
I think what bret said is $my_button = $ie.button(:id, 'foo') is a bad idea. It may be better to do something like... def my_button() return( $ie.button(:id, 'foo') ) end while my_string = $ie.text could be fine, though you could still do def my_string() return( $ie.text ) end ... i think

Re: [Wtr-general] hi , few quries with WATIR

2007-01-09 Thread John Lolis
for editors I use Mondrian. Its very simple, but works great. Try out a bunch of them, find one that works for you. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6048messageID=16961#16961

Re: [Wtr-general] Wtr-general Digest, Vol 38, Issue 14

2007-01-09 Thread John Lolis
I just ran into same problem myself i think. I am running 1.8.4. Going to switch to 1.8.2 tomorrow and see if that fixes it. The AutoIt dll must be correctly registered for this feature to work properly C:/Program Files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir/windowhelper.rb:42:in

[Wtr-general] Oops should be indexes() Re: OT: help understand return from ODBC tables() call?

2007-01-09 Thread Chris McMahon
On 1/9/07, Chris McMahon [EMAIL PROTECTED] wrote: Hi... Help me understand what data structure this is? Ruby ODBC almost always returns an ArrayOfArrays, but this is very very weird and I don't understand what I'm seeing. (btw, google groups access to comp.lang.ruby is down) indexes =

[Wtr-general] OT: help understand return from ODBC tables() call?

2007-01-09 Thread Chris McMahon
Hi... Help me understand what data structure this is? Ruby ODBC almost always returns an ArrayOfArrays, but this is very very weird and I don't understand what I'm seeing. (btw, google groups access to comp.lang.ruby is down) indexes = @conn.indexes('tablename') indexes.each do |ind| puts

Re: [Wtr-general] Oops should be indexes() Re: OT: help understand return from ODBC tables() call?

2007-01-09 Thread Paul Rogers
I dont see an indexes method for the connection... On 1/9/07, Chris McMahon [EMAIL PROTECTED] wrote: Hi... Help me understand what data structure this is? Ruby ODBC almost always returns an ArrayOfArrays, but this is very very weird and I don't understand what I'm seeing. (btw, google

Re: [Wtr-general] Oops should be indexes() Re: OT: help understand return from ODBC tables() call?

2007-01-09 Thread Paul Rogers
but I am using a really old version of dbi. I'll try an upgrade - Original Message - From: Paul Rogers [EMAIL PROTECTED] Date: Tuesday, January 9, 2007 4:18 pm Subject: Re: [Wtr-general] Oops should be indexes() Re: OT: help understand return from ODBC tables() call? I dont see an

[Wtr-general] Alert box - hangs

2007-01-09 Thread usha
Hi, I've been trying to click on the Alert box with no success. Tried both methods suggested in the thread below - no luck. http://forums.openqa.org/thread.jspa?threadID=5802tstart=15 Script hangs till I manually click on the Alert box. The button which triggers the Alert remains yellow in

[Wtr-general] interesting difference between Watir 1.4 and and 1.5.1127

2007-01-09 Thread Chris McMahon
I have a long-running script that works fine in the later build but enters an infinite loop with the earlier build. There is nothing at all unusual in the code, and if I figure out what's causing the loop, I'll post it. -C ___ Wtr-general mailing list

Re: [Wtr-general] How do I click the OK button on a java alert?

2007-01-09 Thread liucongying
ans1 = objAutoit.ControlClick(Microsoft Internet Explorer,'', 'OK') the syntax is wrong, what is the ,,' in (Microsoft Internet Explorer,'', 'OK') ? - Posted via Jive Forums

Re: [Wtr-general] how to handle the file download window !

2007-01-09 Thread liucongying
This method is not available, my code is below require 'watir' # the controller include Watir $ie = IE.new test_site = 'http://war3.replays.net/bbs/htm_data/164/0701/1040238.html' $ie.maximize $ie.image(:index,35).click #click the download button so how to handle the event of File

[Wtr-general] a common error

2007-01-09 Thread sarita
require keyword is used to include files: require 'toolkit/testhook' But when ruby is unable to find that file, it shows the following type of error:

[Wtr-general] Two queries in Watir

2007-01-09 Thread Maloy kanti debnath
Hello people, I have got two queries in Watir. If they get cleared through this forum, I would be thankful. The queries are: 1. How to access a control, whose '.html' is displayed as ' Active Element: [INPUT], Index: [956] INPUT title=Sign in type=image height=22 hspace=0 width=37