[Wtr-general] Accessing an input field from the IE DOM Explorer

2007-03-19 Thread Luis Regueira
Hi everyone

I´m a complete newbie with Ruby and Watir and I have a problem that I can´t 
seem to solve.
Hopefully someone here can help me out?

Ok, here it is:
On the page I have a drop down list. When one particular option is selected 
then a new input field shows up on the page. This is NOT a div or similar 
with its visibility set to none. The problem is that this does not show up 
on the html source code. The only place where I can find this input field 
is in the IE DOM Explorer tree and only once it appears on the page.

This is what it looks like in the tree:
It is a INPUT inside a DIV inside a SPAN.
INPUT class=TestbasedControlTextbox id=ct100_ch_cd_bl1_B3_oma_writeControl
How can I access this field?
Can anyone give me hand or maybe direct me to a tutorial or something?

Any help will be greatly appreciated.
/ Luis

_
Motionera roligare med MSN Hälsa http://e-health.msn.se/

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Accessing an input field from the IE DOM Explorer

2007-03-19 Thread Željko Filipin

ie.text_field(:id, ct100_ch_cd_bl1_B3_oma_writeControl).set(text)
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Accessing an input field from the IE DOM Explorer

2007-03-19 Thread Željko Filipin

On 3/19/07, Luis Regueira [EMAIL PROTECTED] wrote:


 I tried that and I get this error message: Unable to locate object,
using id and ct100_ch_cd_bl1_B3_oma_writeControl
(Watir::Exception::UnknownObjectException). This IS the object id so that
is NOT the problem. Any other suggestions?


Make sure that you have performed action that causes text field to appear.
Is it in the frame?
Could you send url of page so we can try it? Or screen shot of dom? Can you
reproduce that behaviour when you save that page to your machine (in that
case, compress it and send here so we can try it)?
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Difference in $browser.text

2007-03-19 Thread Paul Rogers
Firewatir is using an incorrect method for text. I sent the fix on, but I guess 
there has been no new release since. I cant rememeber what I had to do, and Im 
afraid I dont have it here. I'll try and post it on tonight

Paul


- Original Message -
From: steven [EMAIL PROTECTED]
Date: Sunday, March 18, 2007 6:21 pm
Subject: [Wtr-general] Difference in $browser.text

 With Watir - if I go to: 
 http://validator.w3.org/check?verbose=1uri=http://my.invalid.page.com
 I am looking for:
 
 This page is not Valid XHTML 1.0 Transitional!
 
 
 
 Using $browser.text, I get the correct value of:
 
 Root Namespace:http://www.w3.org/1999/xhtml
 Revalidate With Options: Show SourceShow Outline
 Validate error pagesVerbose Output
 Help on the options is available.
 Note: The Validator XML support has some limitations.
 This page is not Valid XHTML 1.0 Transitional!
 Below are the results of checking this document for X
 
 
 
 
 Now, if I use FireWatir, and use  $browser.text, I get the following:
 
 
 
 
  
 
  div id=result
h2 id=results class=invalidThis page is 
 strongnot/strong Valid XHTML 1.0 Transitional!/h2
 
p
  Below are the results of checking this document for 
 http://www.w3org/TR/REC-xml#sec-conformance;X
 
 
 Since these are inconsistent, I am wondering if they are supposed 
 to be that way and I have to code around them, or if one of them 
 is either getting to much info, or not enough info.
 
 Any ideas?
 Steven
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general
 
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] How to send the attachment by mail in Watir/Ruby

2007-03-19 Thread Jason He
Dear all,

 

After running test cases, the test result will generate as files in hard
disk, I want to send them as attachment by email, is there any way to do
it?

 

Thanks,

 

Jason

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to send the attachment by mail in Watir/Ruby

2007-03-19 Thread Paul Rogers
this is not really a watir question...

but, its quite easy to do attachemnts to messages. I think there is a ruby 
library that does it, and Im sure action-mailer will too

Paul
  - Original Message - 
  From: Jason He 
  To: wtr-general@rubyforge.org 
  Sent: Monday, March 19, 2007 7:49 PM
  Subject: [Wtr-general] How to send the attachment by mail in Watir/Ruby


  Dear all,

   

  After running test cases, the test result will generate as files in hard 
disk, I want to send them as attachment by email, is there any way to do it?

   

  Thanks,

   

  Jason



--


  ___
  Wtr-general mailing list
  Wtr-general@rubyforge.org
  http://rubyforge.org/mailman/listinfo/wtr-general___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Difference in $browser.text

2007-03-19 Thread Angrez Singh

Hi,

The text method has been corrected. It will be available in the next
release.

Regards,
Angrez

On 3/19/07, Paul Rogers [EMAIL PROTECTED] wrote:


Firewatir is using an incorrect method for text. I sent the fix on, but I
guess there has been no new release since. I cant rememeber what I had to
do, and Im afraid I dont have it here. I'll try and post it on tonight

Paul


- Original Message -
From: steven [EMAIL PROTECTED]
Date: Sunday, March 18, 2007 6:21 pm
Subject: [Wtr-general] Difference in $browser.text

 With Watir - if I go to:
 http://validator.w3.org/check?verbose=1uri=http://my.invalid.page.com
 I am looking for:

 This page is not Valid XHTML 1.0 Transitional!



 Using $browser.text, I get the correct value of:

 Root Namespace:http://www.w3.org/1999/xhtml
 Revalidate With Options: Show SourceShow Outline
 Validate error pagesVerbose Output
 Help on the options is available.
 Note: The Validator XML support has some limitations.
 This page is not Valid XHTML 1.0 Transitional!
 Below are the results of checking this document for X




 Now, if I use FireWatir, and use  $browser.text, I get the following:






  div id=result
h2 id=results class=invalidThis page is
 strongnot/strong Valid XHTML 1.0 Transitional!/h2

p
  Below are the results of checking this document for
 http://www.w3org/TR/REC-xml#sec-conformance;X


 Since these are inconsistent, I am wondering if they are supposed
 to be that way and I have to code around them, or if one of them
 is either getting to much info, or not enough info.

 Any ideas?
 Steven
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Selecting an 'accented character' from a list

2007-03-19 Thread sathees
put them to an array and use it.

myarray = []
myarray = $ie.select_list(:whatever, 'whatever').getAllContents

now you can see which one is your text by doing
myarray.length.times do |x|
puts index + #{x} +   + #{myarray[x]}
end
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Save Image Hangs?

2007-03-19 Thread sathees
Hi,
I am running a watir script that saves images. Runs fine except it hangs at 
save window some time. Waiting for me to click cancel or save and it continues 
to run. Is this a problem with watir?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general