[Wtr-general] Anand Jagadishprasad Sahu is out of the office.

2005-11-16 Thread Anand Jagadishprasad Sahu
I will be out of the office starting 11/17/2005 and will not return until 11/21/2005. I will respond to your message when I return on 21-Nov-2005. In case of any urgency, please send an email to [EMAIL PROTECTED] or [EMAIL PROTECTED] ___ Wtr-general m

Re: [Wtr-general] japanese characters

2005-11-16 Thread Jan.Montano
I've got it to work now. Thanks. Windows gave me a hard time in setting those language settings. When I activate a window, it's english, when i activate another one, its japanese. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Montano, Jan (Corp,IB&IM) Se

[Wtr-general] japanese characters

2005-11-16 Thread Jan.Montano
I know this is not a watir related question, but hope I could also find answers here. Lately, My freeride doesn't accept japanese unicode characters anymore. it marks as . but i've set may language to japanese, and notepad accepts japanese characters. Is there something I have to set with

Re: [Wtr-general] Accessing Frames that show --Access Denied-

2005-11-16 Thread Iain Rose
Are there any other options if neither of these workarounds are available? I can't ask the developers to make the change you suggested and opening the frames in seperate browsers doesn't work. The test script I'm using is: require 'watir' require 'test/unit' include Watir class TC_Smoke_Test <

Re: [Wtr-general] Best practices posting back to parent window fromchild window

2005-11-16 Thread Eugene Kula
Is it as simple as doing an $ie.wait before my assert after reattaching to the parentwindow? >From: "Eugene Kula" <[EMAIL PROTECTED]> >Reply-To: wtr-general@rubyforge.org >To: wtr-general@rubyforge.org >Subject: [Wtr-general] Best practices posting back to parent window >fromchild window >Date:

[Wtr-general] Best practices posting back to parent window from child window

2005-11-16 Thread Eugene Kula
What is the best way to assert something on a parent window that is posted from a child window? When I run my assert the script fails because the parent window isn't finishedl posting. Is there a way to tell when IE is done posting? Many thanks! _

Re: [Wtr-general] Can watir be used to drive gmail....

2005-11-16 Thread Jeff Wood
It works, you just have to learn how to get around ... alot of ajax stuff gets initialized when a mouse over or other _javascript_ event happens. j.On 11/16/05, Zeljko Filipin <[EMAIL PROTECTED]> wrote: http://googleblog.blogspot.com/2005/10/guess-what-just-turned-34.htmlMore about gmail.Zeljko---

Re: [Wtr-general] Span troubles

2005-11-16 Thread Paul Rogers
take a look at css test in the unit tests directory. That does something simlar to what you need. I think you need to do something slightly different: if /none/i.match( ie.span(:id , 'xxx').getOleObject.style.cssText ) puts "its hidden" else puts "displayed!" end Content-Type: multipar

Re: [Wtr-general] Problem in WATiR

2005-11-16 Thread Vishal Chavan
Hi Prashant, In this case you might need to keep a excel file to map the actual textbox name to the label.   U might need to read from this  excel file. Regards, Vishal  --- pj jha <[EMAIL PROTECTED]> wrote: From: pj jha <[EMAIL PROTECTED]>Date: Wed, 16 Nov 2005 14:17:49 + (GMT)To: wtr-general@

[Wtr-general] Problem in WATiR

2005-11-16 Thread pj jha
Hi,   Problem is not as you understand. I am going to explain in detail. Actually I am writing test script in ruby and I am using WATiR for same. It’s an automatic testing script. When I start the execution of script it entered value and test the web pages. I am giving one example for that. Su

Re: [Wtr-general] How to capture current page in a variable?

2005-11-16 Thread Beaton, Malcolm
Thanks!!   Mal   Malcolm Beaton Technical Consultant Conchango   _ This e-mail has been scanned for viruses by MessageLabs. The information contained in this message is confidential and is intended for the address

Re: [Wtr-general] How to capture current page in a variable?

2005-11-16 Thread Zeljko Filipin
You can do   assert(ie.url == ‘the_URL_I_Am_expecting')   More information abuot select lists at http://wtr.rubyforge.org/rdoc/ (http://wtr.rubyforge.org/rdoc/classes/Watir/SelectList.html)   Zeljko From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Beaton, MalcolmSent: Wednesda

Re: [Wtr-general] Problem in WATiR

2005-11-16 Thread Jan.Montano
Is something like this you're after?    def MethodWrapper.insert_text(text, fieldname, description)   $ie.text_field(:name, fieldname ).value = text  puts ' ACTION: entered ' + text + ' in the ' + description + ' field'    #puts '\t- successful.'  end     #MethodWrapper.inse

Re: [Wtr-general] How to capture current page in a variable?

2005-11-16 Thread Beaton, Malcolm
  Hi Zeljko   Basically I want my browser to 1 – pick a site from an array 2 – enter it in the drop down 3 – press go (Thus loading the portal for that country) 4 – verify the correct site loaded I can do all that except 4. So I thought if I can grab the URL from IE I can compare t

Re: [Wtr-general] Problem in WATiR

2005-11-16 Thread Sathya Shankar
Go through the user guide for watir and u can find it in http://wtr.rubyforge.org/watir_user_guide.html pj jha wrote: > hi, > > i am little bit confused, my confusion is as follow, > > Suppose i want write the code for any control like textbox, drop down > box etc in watir. I want to pass

Re: [Wtr-general] watir exception...

2005-11-16 Thread Sathya Shankar
Its not an error message its a warning message and you can suppress that warning by using this code... I think this is mainly because of the fact that the different frames are loaded from different domains.(not sure about it) ie=IE.attach(:title, /.*Yahoo.*/) begin ie.link(:text, /.*Sig

Re: [Wtr-general] Problem in WATiR

2005-11-16 Thread Zeljko Filipin
I do not understand what do you want to do.   You can enter 'watir rules' in textbox like this   ie.textField(:id, 'textField_id').set('watir rules')   and select 'watir rules'   ie.selectBox(:id, 'selectBox_id').select('watir rules') More information on http://wtr.rubyforge.org/watir_user

[Wtr-general] Problem in WATiR

2005-11-16 Thread pj jha
hi,i am little bit confused, my confusion is as follow,Suppose i want write the code for any control like textbox, drop down box etc in watir. I want to pass the field name associated with that control and  the  value  which  i  have to entered(in case of textbox) or select(in case of dr

[Wtr-general] Problem in WATiR

2005-11-16 Thread pj jha
hi,i am little bit confused, my confusion is as follow,Suppose i want write the code for any control like textbox, drop down box etc in watir. I want to pass the field name associated with that control and  the  value  which  i  have to entered(in case of textbox) or select(in case of dr

Re: [Wtr-general] Can watir be used to drive gmail....

2005-11-16 Thread Zeljko Filipin
http://googleblog.blogspot.com/2005/10/guess-what-just-turned-34.html More about gmail. Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of smanish Sent: Wednesday, November 16, 2005 10:32 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] C

Re: [Wtr-general] How to capture current page in a variable?

2005-11-16 Thread Zeljko Filipin
I do not understand what do you need.   To capture url use ie.url, for text ie.text, for title ie.title, for html ie.html...   Zeljko From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Beaton, MalcolmSent: Wednesday, November 16, 2005 11:44 AMTo: wtr-general@rubyforge.orgSubjec

Re: [Wtr-general] watir exception...

2005-11-16 Thread Manish Sapariya
Nope, I still get the same error. Note that script runs fine.only at the end it throws this error. Regards, Manish On 11/16/2005 03:21 PM, Sathya Shankar wrote: >Hi > >[Sign Out, > >Here the "," seems to be causing the problem. So in your script you can >either use the "," in your script

[Wtr-general] How to capture current page in a variable?

2005-11-16 Thread Beaton, Malcolm
This is probably a really simple question (but I have only been using ruby/WATiR for 2 days)   I am trying to test site navigation to each site portal using an array and an iterative select and go command. (see below)   PortalArray.each do | x |     puts 'Step 2.'runNumber' : Select

Re: [Wtr-general] Can watir be used to drive gmail....

2005-11-16 Thread Zeljko Filipin
HTML source will tell you why it does not work. :) It seems that gmail uses a lot of ajax (or something like that). Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of smanish Sent: Wednesday, November 16, 2005 10:32 AM To: wtr-general@rubyforge.org Su

Re: [Wtr-general] watir exception...

2005-11-16 Thread Sathya Shankar
Hi [Sign Out, Here the "," seems to be causing the problem. So in your script you can either use the "," in your script or the regular expressions Then the script would look like ie=IE.attach(:title, /.*Yahoo.*/) ie.link(:text, /.*Sign Out.*/).click ie.close() The above script worked for me.

Re: [Wtr-general] Can watir be used to drive gmail....

2005-11-16 Thread smanish
Hey thanks for the solution. It works. But why it does not work with default gmail interface? Regards, Manish On 11/16/2005 02:34 PM, Zeljko Filipin wrote: >I just tried it too, and it really does not work. >Solution: log in, go to http://mail.google.com/mail/h/ and you will be >switched to bas

Re: [Wtr-general] Can watir be used to drive gmail....

2005-11-16 Thread Zeljko Filipin
I just tried it too, and it really does not work. Solution: log in, go to http://mail.google.com/mail/h/ and you will be switched to basic HTML and watir will work. Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of smanish Sent: Wednesday, November 1