Re: [Wtr-general] Assert with If...Else...End not working as specified in example

2007-02-23 Thread Željko Filipin
I guess this is from some old user guide (I could not find it in the current one). ie.contains_text returns number if text is found irb> ie.contains_text("text") => 11 and assert returns nil if you give it a number irb(main):011:0> assert(11) => nil This combines it. irb(main):013:0> assert(

Re: [Wtr-general] Start test at 6 pm

2007-02-23 Thread Željko Filipin
I think something like Windows Scheduled Tasks would be better, but I do not why you need this (and I have not tried Windows Scheduled Tasks, so I really do not know). You can get Time.now to return time in "18:00:00" format. irb> Time.now.strftime("%H:%M:%S") => "11:24:10" For more information

Re: [Wtr-general] Executing all scripts at a time

2007-02-23 Thread Željko Filipin
On 2/23/07, Naga Harish Kanegolla <[EMAIL PROTECTED]> wrote: Is there a way to execute all the scripts at a time? If you mean sequentially, you can do it like this. If you have files called test1.rb and test1.rb, make file all_tests.rb in folder where those files are located and put this in

Re: [Wtr-general] Start test at 6 pm

2007-02-23 Thread sathees
Hi, This is not to start the test. I am going to do a load test and I want some time break in between. Say I want 3 thread start @ 10 am once that is done wait till 11 am and run the 8 thread. I want to code them in watir. thank you -

Re: [Wtr-general] Start test at 6 pm

2007-02-23 Thread Željko Filipin
I am not sure if you should use Watir for load testing, but take a look at all_tests_concurrent.rb in watir unit tests, threads are used to run concurrent tests. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org h

Re: [Wtr-general] Start test at 6 pm

2007-02-23 Thread Richard Conroy
On 2/23/07, Željko Filipin <[EMAIL PROTECTED]> wrote: > I think something like Windows Scheduled Tasks would be better, but I do not > why you need this (and I have not tried Windows Scheduled Tasks, so I really > do not know). I agree, test execution in this way should be driven externally. I do

[Wtr-general] TextField#set and utf-8

2007-02-23 Thread Željko Filipin
I want to set text field to "željko". ie.text_field(:index, 1).set("željko") But, Watir sets it to "§eljko", "Ĺľeljko" or just "eljko" or some other string (depending if I try from irb, or file that is saved in different encodings). I have saved file as utf-8 and this to the top added require

[Wtr-general] OT: What's the right way to exit a script?

2007-02-23 Thread Paul Carvalho
I wrote a small script that takes a filename from the command line argument, reads in the file, does some stuff and produces some output. It works and I'm reasonably happy with it. Now I'd like to make the script smarter about handling command line arguments. So what I'd like to do is something

Re: [Wtr-general] TextField#set and utf-8

2007-02-23 Thread Paul Carvalho
I was able to input extended Ascii characters into text fields but I didn't do it this way. I should clarify that they were accented European characters, not CJK. I have a Watir script that sets up the base test data in the system. It reads the inputs from an Excel file into an Array and then I

Re: [Wtr-general] How to access childnodes of a particular node ?

2007-02-23 Thread Vamsee Krishna
Yes it woks flawlessly for my current job. But doesn't it look silly for a wonderful api like watir not having a mechanism to navigate through the DOM using parent, children, and siblings relation ship ? - Posted via Jive Forums

Re: [Wtr-general] Assert with If...Else...End not working as

2007-02-23 Thread Jason
Yes, that worked Zeljko, thank you. I found the example here- http://www.openqa.org/watir/watir_user_guide.html Go to the heading titled Validating Test Results and you'll see this snippet of code:if ie.contains_text("Reached test verification point.") puts: "Test passed. Page contains the

[Wtr-general] How to simulate right click on particular element ?

2007-02-23 Thread Vamsee Krishna
If you take look at fire_event method in ruby there is no way to simulate mouse right click. Sending APPSKEY though send_keys is not an option since because upon right click dhtml based div menu is shown. When there will be a fix available for this problem ? ---

Re: [Wtr-general] TextField#set and utf-8

2007-02-23 Thread Željko Filipin
Thanks Paul, I will try it. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Assert with If...Else...End not working as

2007-02-23 Thread Ravi
You can not use both 'if 'and 'assert' together for this purpose. See: http://rubyforge.org/pipermail/wtr-general/2006-February/004905.html - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6663&messageID=1914

Re: [Wtr-general] How to simulate right click on particular element ?

2007-02-23 Thread Paul Rogers
You are more likely to get a fix if you send some html and a failing unit test. Make it as simple as possible though. Paul - Original Message - From: "Vamsee Krishna" <[EMAIL PROTECTED]> To: Sent: Friday, February 23, 2007 8:06 AM Subject: [Wtr-general] How to simulate right click on

Re: [Wtr-general] OT: Test unit reporter project dead?

2007-02-23 Thread Brian Reynolds
Continuous Integration Enthusiast but Ruby Newbie here... First off, Nick, thanks for putting something together for test reporting. Now down to business, I want to make my watir tests display in CruiseControl. I can run a ruby test easy enough from ant, but don't know how to get the ci_report

Re: [Wtr-general] OT: Test unit reporter project dead?

2007-02-23 Thread Nick Sieger
On 2/23/07, Brian Reynolds <[EMAIL PROTECTED]> wrote: Continuous Integration Enthusiast but Ruby Newbie here... First off, Nick, thanks for putting something together for test reporting. Now down to business, I want to make my watir tests display in CruiseControl. I can run a ruby test easy en

Re: [Wtr-general] OT: Test unit reporter project dead?

2007-02-23 Thread Nick Sieger
On 2/23/07, Nick Sieger <[EMAIL PROTECTED]> wrote: Can someone show me how to alter this Watir sample test to use > ci_reporter? > > *** > require 'watir' > include Watir > require 'test/unit' require 'rubygems' gem 'ci_reporter' require 'ci/reporter/rake/test_unit_

[Wtr-general] How to handle a text_field popup

2007-02-23 Thread John
I wonder if I can get a little direction on a problem: I have a text_field that has an onBlur event that produces a popup window. Without a 'set_no_wait' for the text_field I don't know how to handle this. Could you point me in the right direction. I don't want to avoid the popup, I want to