Re: [Wtr-general] 2 questions re: cookies and passing parameters

2006-08-31 Thread amol deshpande
Hi, answer to your second question is "Yes". You can pass in a command line argument (example : pass in the url). ARGV[0]=> argument '1' on command line, this is JUST after the test name and before you pass in "-f" for the fast mode or any other watir parameter. If you want to keep it optional, t

[Wtr-general] 2 questions re: cookies and passing parameters

2006-08-31 Thread Gabe
I have two miscellaneous questions: 1) How can I delete cookies from within watir? I noticed that there is a method for this in Watir::CookieManager::WatirHelper, but I am really new to Ruby, and can't figure out the syntax I need to use :-) 2) I would like my watir unit tests to accept an opti

[Wtr-general] cannot set a text_field after form submit

2006-08-31 Thread Gabe
I have some watir tests for my form validation code. Basically, I try entering some invalid text, submitting, making sure I got an error, etc. The problem is that I cannot set a text field after the first form submit. When I try, I get this error: test_address_validation(LocatorTests): WIN32OL

[Wtr-general] Problem reading tables

2006-08-31 Thread RadhaKrishna Sunkari
I get the following error, if I've an empty table(with no or tags in it). In this case my table #2 is empty. I'm using watir 1.4.1. Did someone notice the same problem? Thanks. irb(main):069:0> ie.show_tables Found 19 tables 1 id= rows=1 columns=1 WIN32OLERuntimeError: Unknown property o

Re: [Wtr-general] Question - How to use different installed versions of WATiR

2006-08-31 Thread Charley Baker
You can use something along these lines to load a specifc version of a gem, standard operators apply (>=, <=, etc): require 'rubygems'require_gem 'watir', '= 1.5.1.1079'There's no need to uninstall previous gems if you want to use them. -CharleyOn 8/31/06, Boyt, Darrel <[EMAIL PROTECTED]> wrote:

Re: [Wtr-general] Error clicking a button...

2006-08-31 Thread Charley Baker
Hey Mark,   It's good you're trying to track down the error by process of elimination, somehow not something that occurs to a lot of people. It's a bit hard to pin down what's happening remotely without some more information. Try posting your script code and possibly some part of the html. -Charle

[Wtr-general] Question - How to use different installed versions of WATiR

2006-08-31 Thread Boyt, Darrel
Bret, et al,   I'm still a neophyte where Ruby's concerned, so please excuse what may seem to be an obvious question.   I've followed the instructions on http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem to install the latest from SVN.  At the end of the instructions it says I can uninstal

Re: [Wtr-general] Error clicking a button...

2006-08-31 Thread Cain, Mark
Here is a curious addition to my previous post.  If I put an “$ie.show_all_objects” at the top of the test case then all the object on the page are displayed in the output—as expected, nothing curious here.  However, if I move the “$ie.show_all_objects” method to after where the Non-modal w

[Wtr-general] Error clicking a button...

2006-08-31 Thread Cain, Mark
I am getting the following error when I click a ‘Save’ button on a page.  The application has several tabbed pages and on each is the same ‘Save, Submit, and Clear’ button pattern.  The other tab pages click the save button without error.  This error occurs after attaching and closing a Non

Re: [Wtr-general] Parameterization of data in watir.

2006-08-31 Thread Chris McMahon
We are using watir in our project, and we want to do the Parameterization for few things in the script using excel sheet, if possible then can anyone share there code or the procedure to how to do the Parameterization using the excel sheet. Any help would be highly appreciated. http://wiki.rubyga

Re: [Wtr-general] Parameterization of data in watir.

2006-08-31 Thread Sathya Shankar
Title: Parameterization of data in watir. Hi, Look at wet the framework for watir.  This has got all the options pertaining to the datatable. Let me know any issues. Sanjay kumar Rai wrote: Hi, We are using watir in our project, and we want to do the Parameterization fo

Re: [Wtr-general] uninitialized class variable @@browser in Watir ::Simple

2006-08-31 Thread Kreutzer, Christian
hi aidy, Watir::Simple has a different philosophy. you cant mix those simple methods with 'normal' watir scripts because of the missing ie instance you noticed the correct usage would be some like that: include Watir::Simple new_browser_at "someurl" # @@browser will be initialized here asse

[Wtr-general] Parameterization of data in watir.

2006-08-31 Thread Sanjay kumar Rai
Title: Parameterization of data in watir. Hi, We are using watir in our project, and we want to do the Parameterization for few things in the script using excel sheet, if possible then can anyone share there code or the procedure to how to do the Parameterization using the excel sheet. An