you should be able to use the value= method

using the textfields.html from the watir_bonus\unittests\html dir

ie.text_field(:name , 'readOnly').value='test'

seems to work


Paul
Content-Type: multipart/alternative; boundary="0-1983776644-1132720426=:63063"
Content-Transfer-Encoding: 8bit


--0-1983776644-1132720426=:63063
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,
  I want to write a test case in which I am required to test a date field. This 
date field is a "readonly text field".
   
   The input to this readonly text field is by means of a calendar( the user is 
supposed to select a date from the calendar which will be displayed in the text 
field).
   
  I want to input data into the "Readonly text field" without selecting the 
date from the calendar. Is this possible in watir?
  Is there a way to input data into the "Readonly text field" in watir?

                
---------------------------------
 Enjoy this Diwali with Y! India Click here
--0-1983776644-1132720426=:63063
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<DIV id=RTEContent>Hi,</DIV>  <DIV>I want to write a test case in which I am 
required to&nbsp;test a date field. This date field is a "readonly text 
field".</DIV>  <DIV>&nbsp;</DIV>  <DIV>&nbsp;The input to this readonly text 
field is by means of a calendar( the user is supposed to select a date from the 
calendar which will be displayed in the text field).</DIV>  <DIV>&nbsp;</DIV>  
<DIV>I want to input data into the "Readonly text field" without selecting the 
date from the calendar. Is this possible in watir?</DIV>  <DIV>Is there a way 
to input data into&nbsp;the "Readonly text field" in watir?</DIV><p>
                <hr size=1> 
Enjoy this Diwali with Y! India <a 
href="http://in.promos.yahoo.com/fabmall/index.html";>Click here</a>
--0-1983776644-1132720426=:63063--
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to