Re: [Wtr-general] How to make sure that script run in line squencerather than alphabetical sequence when using load

2007-03-08 Thread Jason He
Yes, give the class name with suffix “Sequence” can make sure the code executing sequence according to line number in the script. However, it seems that code in the other script won’t execute when “load” method is embraced in the class/function block. ---

[Wtr-general] Report on Watir

2007-03-08 Thread quick reply
Hi, Recently came accross this tool.It seems very useful for testing web based application.Can anybody give me a pointer for comparing this tool with other opensouce tool like Samie,Pamie,Selenium etc... Mean i would like to know how WATIR is better than other tool.Some comparision studies. And w

Re: [Wtr-general] Problems mapping to: http://forums.openqa.org/post!default.jspa?forumID=5

2007-03-08 Thread Željko Filipin
On 3/7/07, Lauren <[EMAIL PROTECTED]> wrote: Anyone know how to pass on this information to the forum "managers" of this site?? See http://openqa.org/contacting.action -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@ruby

Re: [Wtr-general] Report on Watir

2007-03-08 Thread Željko Filipin
On 3/8/07, quick reply <[EMAIL PROTECTED]> wrote: Can anybody give me a pointer for comparing this tool with other opensouce tool like Samie,Pamie,Selenium etc... Comparisons between Watir and SilkTest http://wiki.openqa.org/display/WTR/Comparison+of+Watir+with+Silk+Test what are the limitat

[Wtr-general] Identifying the id of the element with focus after a tab

2007-03-08 Thread Mike Ramsey
I am fairly new to watir so please bear with me. I am using AutoIt to send {TAB} commands to IE from watir. class WindowHelper #Begin stuff Ramsey added def push_key(winTitleText,keyStroke) wait_for_window(winTitleText) if keyStroke != "" and keyStroke != " "

Re: [Wtr-general] How to make sure that script run in linesquencerather than alphabetical sequence when using load

2007-03-08 Thread Cain, Mark
I ran into this irritating behavior a while back and it appears that ruby ASCII sorts the test methods before execution. I solved it by putting 01, 02, 03, ... after 'test' (test01, test02, etc) and then the test would run in the order I put them in.

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method `readOnly'

2007-03-08 Thread Charley Baker
Hey Jeff, I'm not able to get to the site you have listed in your test, seems the url might be local to your internal network? When you include unittests/setup there's a line at the beginning there: END {$ie.close if $ie; Watir::IE.quit} which closes ie when your tests are done running. -Charle

Re: [Wtr-general] Identifying the id of the element with focus after a tab

2007-03-08 Thread Charley Baker
Hi Mike, When you're using AutoIt, you're working with windows controls, not html elements per se. There's no way that I'm aware of that you can easily get the html element id using AutoIt. It recognizes windows, controls and identifies them by using Window handles, text and the like. There's so

Re: [Wtr-general] Identifying the id of the element with focus after a tab

2007-03-08 Thread Paul Rogers
there is a method ie.show_active that might do what you need Paul - Original Message - From: Charley Baker To: wtr-general@rubyforge.org Sent: Thursday, March 08, 2007 8:53 AM Subject: Re: [Wtr-general] Identifying the id of the element with focus after a tab Hi Mike,

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method `readOnly'

2007-03-08 Thread Jeff Fry
Hey Charley, thanks for taking a look! Yeah, I mistakenly pasted an internal url. Our public site is: http://www.divinecaroline.com/public/login/show_login_page Jeff On 3/8/07, Charley Baker <[EMAIL PROTECTED]> wrote: Hey Jeff

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method `readOnly'

2007-03-08 Thread Charley Baker
Had to change the id's you were using to access the html elements, this should work: require 'watir' include Watir require 'test/unit' class TC_SendManyMessages < Test::Unit::TestCase $email = '[EMAIL PROTECTED]' $pw = 'password' def test_send_many_message

Re: [Wtr-general] How to clear the cache of the browser?

2007-03-08 Thread Bach Le
Swarma, Actually, I believe keeping the cookies from writing to disk is a better solution than the one Paul is suggesting (using code to delete it). In IE7 (don't know about 6 but I think it is possible). In IE7, do the following: 1. Tools -> Internet Options 2. Click on the "Privacy" Tab 3.

[Wtr-general] Assert in helper class in require'd file

2007-03-08 Thread Steven List
At the moment, WATIR is kicking my butt in a small way. I want to use an assert() inside a class that is require'd by a test class. So it's === require 'includeFirst' $x = MyStuff.new class TC_blah def test_blah $x.verifyAndGo("blah") end

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method `readOnly'

2007-03-08 Thread Jeff Fry
Thanks Charlie - you rock! Out of curiosity, how did you know to change (:id, 'label_user_email') to (:id, 'user_email') ? Was there something in the page source that I missed? Or did you just experiment with taking 'label_' off? ...Or asked differently, why did using 'label_user_email' give the

Re: [Wtr-general] Assert in helper class in require'd file

2007-03-08 Thread Cain, Mark
I am pretty sure your class need to inherit from Test::Unit::TestCase (if that is the right way to say it). class MyStuff < Test::Unit::TestCase def verifyAndGo(linkName) assert($ie.link(:text, linkName).exists?) $ie.link(:text, linkName).click end end --Mark -Original Message--

Re: [Wtr-general] How to clear the cache of the browser?

2007-03-08 Thread Paul Carvalho
Hi Bach, just wanted to chime in on your suggestion. I tried a similar IE 6 browser setup a year or so ago when testing one of our web apps. I noticed very strange behaviour that was directly traceable back to the Cookie settings. For our secure (https) web app, it was looking for some cookie i

Re: [Wtr-general] Assert in helper class in require'd file

2007-03-08 Thread Paul Rogers
class TC_bla < Test::Unit::Testcase - Original Message - From: "Steven List" <[EMAIL PROTECTED]> To: Sent: Thursday, March 08, 2007 2:13 PM Subject: [Wtr-general] Assert in helper class in require'd file > At the moment, WATIR is kicking my butt in a small way. > > I want to use an as

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method `readOnly'

2007-03-08 Thread Charley Baker
Heya Jeff, I checked out the page dom with ie dom explorer, the id's you had are for the labels on those controls, not the ids for the textfields. It found the control, but since it was a plain old text field, watir couldn't set the text on it. The error message is a little funky. -c On 3/8/07

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method`readOnly'

2007-03-08 Thread Sergio Pinon
Jeff, I'm sure Charley will answer this as well but I just looked at it right now and if you look at the page source you will see that the control you were trying to access was a label and not a textfield. The label had the id of label_user_email. The textbox had the id of user_email. You probably

Re: [Wtr-general] Assert in helper class in require'd file

2007-03-08 Thread Charley Baker
It's not really a Watir thing more of a test unit issue. You just need to require 'test/unit/assertions' and may want to include the Assertions module. Something like the following: So it's === require 'includeFirst' require 'test/unit' #i

Re: [Wtr-general] Identifying the id of the element with focus after a tab

2007-03-08 Thread Mike Ramsey
>Date: Thu, 08 Mar 2007 09:17:09 -0700 >From: Paul Rogers <[EMAIL PROTECTED]> >Subject: Re: [Wtr-general] Identifying the id of the element with > >there is a method ie.show_active > >that might do what you need > >Paul Paul, I added the following to watir.rb # Return the element Id of the

Re: [Wtr-general] Report on Watir

2007-03-08 Thread Jeff Fry
Take my replies with a grain of salt. Nowadays I just keep my toe in Watir (as it were) ;-) and am only beginning to learn Selenium RC. On 3/8/07, quick reply <[EMAIL PROTECTED]> wrote: Hi, Recently came accross this tool.It seems very useful for testing web based application.Can anybody give

Re: [Wtr-general] How to clear the cache of the browser?

2007-03-08 Thread Bach Le
Thanks for the info Paul. We are currently also doing some tests with clearing cookies and cache. I'll be sure to test it out to make sure it works in that situation. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method`readOnly'

2007-03-08 Thread Jeff Fry
Ahhh...that explains it...and will help me to catch this error if I make it again. Sergio and Charley, thanks again! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Active-X in Watir

2007-03-08 Thread Prem
On 3/9/07, Jeff Fry <[EMAIL PROTECTED]> wrote: My general recommendation would be: If IE-only work for you, and you want to (or don't mind) coding in Ruby, choose Watir. We have IE only work, but mostly in applications like Siebel, Pega, Peoplesoft, etc., where we do not have the control on t