Re: [Wtr-general] how to use the commands present in the 'SimpIe' class?

2007-01-18 Thread Maloy kanti debnath
Today morning, when I was going through the 'built-in' scripts, like watir.rb, watir_simple.rb etc. just to have a look at the source code, I happened to note that we can modify the source code of various functions to suit our need and also how to use the functions present in the 'Simple' class.

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-18 Thread Angrez Singh
Hi Bach, The method for finding the element initially worked for Absolute path but while implementing it for forms i got into trouble. So its like this: Whatever HTML you see in Firefox browser will be used for identifying the element. In case you want it to work both with WATiR and FireWatir yo

Re: [Wtr-general] Watir with Ajax

2007-01-18 Thread Bret Pettichord
Naga Harish Kanegolla wrote: > ie.text_field(:name, "contract_my_document[title]").set("harish") > > where add to my contracts is the link, in which if we click on that link i'll > be getting an ajax form. In that "Title" is the text_field. the name of that > title is contract_my_document[title

Re: [Wtr-general] Watir with Ajax

2007-01-18 Thread Naga Harish Kanegolla
HI, I used this code :: ie.link(:text,"add to my contracts").click ie.text_field(:name, "contract_my_document[title]").set("harish") where add to my contracts is the link, in which if we click on that link i'll be getting an ajax form. In that "Title" is the text_field. the name of that title

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Bret Pettichord
Jason He wrote: > Yes, they are the subclass of Test::Unit::Testcase, each one will be a > standalone script, and combined by a list script who will start the test. > OK. Test-unit does not execute test cases when they are loaded (e.g. with require). Rather, after all the test cases are loaded

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Jason He
Yes, they are the subclass of Test::Unit::Testcase, each one will be a standalone script, and combined by a list script who will start the test. Regards, Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: 2007年1月19日 10:51 To: wtr-

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Jason He
Yes, they are the subclass of Test::Unit::Testcase, each one will be a standalone script, and combined by a list script who will start the test. Regards, Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: 2007年1月19日 10:51 To: wtr-

Re: [Wtr-general] how to catpure image

2007-01-18 Thread Bret Pettichord
Maloy kanti debnath wrote: > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1136/./watir/windowhelper.rb:42:in > `check_autoit_installed': The AutoIt dll must be correctly registered for > this feature to work properly (Watir::Exception::WatirException) > This problem is fixed in commit 1142 and w

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Bret Pettichord
Jason He wrote: > > I followed the test suite under directory > “c:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1136\unittests” to write > test cases. > > Each case is a separate ruby file, and they are included in a list file. > > Now I meet a problem about how to control the test cases run in a >

Re: [Wtr-general] How to click on image associated with link

2007-01-18 Thread carl . l . shaulis
I typically use a syntax similar to this: @ie.image(:src , /ps_header_module_solution_builder_iconUp.gif/).click Good luck, Carl Carl L. Shaulis Convergys - Senior Analyst 512-634-0607 ___ Wtr-general mailing list Wtr-general@rubyforge.org htt

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Jason He
I mean those later test cases in the list will run immediately, without waiting the former ones to finish. And the interval between them is so shorter that it looks like those cases run at the same time Regards, Jason From: [EMAIL PROTECTED] [mailto:[EMAIL

[Wtr-general] How to click on image associated with link

2007-01-18 Thread minal
Hi, I am new to ruby/watir. Please see HTML code snippet below. I want to click on image with title "Delete survey, responses, emails" of table cell with id = 10TD37. How do I do that. Thanks Code snippet: SPS Template 2544  08/

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-18 Thread Bach Le
Hi Angrez, Thanks for clarifying that. Although it does work on watir, do you have any idea why it doesn't work on FireWatir? Seems to be that would be nice to have both the relative path and the absolute path for the element src. If you'd like, i'd be happy to take a look at the code and per

[Wtr-general] how to use the commands present in the 'SimpIe' class?

2007-01-18 Thread Maloy kanti debnath
Hello people, I do not know how to use the commands like click_link_with_url, click_link_with_text etc., which are listed under the class 'Simple' in the 'rdoc' documentation of Watir (http://wtr.rubyforge.org/rdoc/index.html). When I tried to use the command 'click_link_with_text' , Watir tel

Re: [Wtr-general] Watir with Ajax

2007-01-18 Thread John Lolis
It may help if you include a snip of your code and html. I haven't had any problems using any 'ajax' items. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6170&messageID=17315#17315

Re: [Wtr-general] how to use the commands present in the 'SimpIe' class?

2007-01-18 Thread John Lolis
not sure on your exact question but would ie.link(:text,'Images').click work? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6165&messageID=17314#17314 ___ Wtr-g

[Wtr-general] Watir with Ajax

2007-01-18 Thread Naga Harish Kanegolla
Hi all, I am using watir for my application. Its very interesting.. I am using lot of ajax for my application. When i click a link an ajax form opens, till here i am able to work with watir, but i can't enter value in the ajax form. Its giving me the error Unable to locate the object. But ia

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Željko Filipin
Let's simplify a bit. I will put a list of files in array. irb(main):017:0> list = ["first.rb", "second.rb", "third.rb"] => ["first.rb", "second.rb", "third.rb"] I want them printed in the order they are in array (first.rb, second.rb, third.rb) irb(main):018:0> list.each { |x| puts x } first.r

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Željko Filipin
On 1/18/07, Jason He <[EMAIL PROTECTED]> wrote: I tried to use the following method, but it seems does work, these cases will run almost concurrently. What do you mean by "almost concurrently"? -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mai

[Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Jason He
Dear all, I followed the test suite under directory "c:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1136\unittests" to write test cases. Each case is a separate ruby file, and they are included in a list file. Now I meet a problem about how to control the test cases run in a predefined sequence,

Re: [Wtr-general] how to catpure image

2007-01-18 Thread Željko Filipin
On 1/18/07, Maloy kanti debnath <[EMAIL PROTECTED]> wrote: The AutoIt dll must be correctly registered for this feature to work properly AutoIt is not correctly registered at your machine. It happens to me every time I install watir. Open a command line, go to folder where AutoItX3.dll is lo

Re: [Wtr-general] how to catpure image

2007-01-18 Thread gdx
Hi, I hope the answer to your problem is here : http://forums.openqa.org/thread.jspa?messageID=16572䂼; - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6155&messageID=17283#17283 ___

Re: [Wtr-general] how to catpure image

2007-01-18 Thread Maloy kanti debnath
hi, i tried this but this is the perticular error i got c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1136/./watir/windowhelper.rb:42:in `check_autoit_installed': The AutoIt dll must be correctly registered for this feature to work properly (Watir::Exception::WatirException) is there any extra re