Hi Paul,

There is definitely some java script going on because I don't see anything
in the html. Please have a look at the html.

Suman

 

HTML for BUTTON ("Next Step")

<td class="input">

                        <table width="100%" cellspacing="0" cellpadding="0"
border="0">

                        <tr>

                        <td class="input"></td>

                        <td class="input" align="right"><input type="submit"
value="Next Step" class="button100"></td>

 

 

HTML for BUTTON(I guess this is the javascript action being called)

            <td><form action="/member/cgi-bin/job-add" method="post"
name="HTMLeditorForm" onsubmit="return (validateDescriptions(this.J__SDESC ,
this.J__LDESC, this) && copy_values(this));"></td>

 

 

HTML for textarea

            <textarea name="J__LDESC"
style="visibility:hidden">(NULL)</textarea>

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Monday, January 29, 2007 8:35 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] how to populate hidden text area?

 

can you post the html of the text area and of the button - there may be some
javascript going on.

 

I also dont understand that if its a required field that its also hidden?

 

Paul

----- Original Message ----- 

From: Suman Goel <mailto:[EMAIL PROTECTED]>  

To: wtr-general@rubyforge.org 

Sent: Monday, January 29, 2007 9:12 PM

Subject: Re: [Wtr-general] how to populate hidden text area?

 

Since my text area is a required field and .value sets the value in the
background, when submitting the form, I get a message to fill in the details
for the required field.

 

I need to fill in the value on UI only. .value sets it in the background. I
need a method like .set which sets the value in UI.

 


  _____  


From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Monday, January 29, 2007 7:41 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] how to populate hidden text area?

 

can you elaborate on that?

----- Original Message ----- 

From: Suman Goel <mailto:[EMAIL PROTECTED]>  

To: wtr-general@rubyforge.org 

Sent: Monday, January 29, 2007 5:08 PM

Subject: Re: [Wtr-general] how to populate hidden text area?

 

Yes. I did what you wrote below and it did not work

 

-Suman

 


  _____  


From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Sunday, January 28, 2007 3:56 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] how to populate hidden text area?

 

presumably you tried 

 

@ie.text_field(:name, 'J_LDESC').value='yes'

 

and that didnt work?

----- Original Message ----- 

From: Suman Goel <mailto:[EMAIL PROTECTED]>  

To: wtr-general@rubyforge.org 

Sent: Friday, January 26, 2007 3:54 PM

Subject: [Wtr-general] how to populate hidden text area?

 

This did not work for me as my webpage has J__LDESC(the textarea in
question) as the required field and so, on clicking submit button, I get the
error message to fill in the field.
 
Any other suggestions?
 
Suman
 
 
 
 
 
 
try using the value method:
 
@ie.text_field(:name, ..).value='some text'
 
the set method fires all appropriate evens, and generally obeys what the web
page is doing ( ie not letting you enter something that is hidden) but
value= will get round that
 
Paul
 
 
 
 
 
 
  ----- Original Message ----- 
  From: Suman Goel 
  To: wtr-general at rubyforge.org
<http://rubyforge.org/mailman/listinfo/wtr-general>  
  Sent: Thursday, January 25, 2007 10:17 PM
  Subject: [Wtr-general] how to populate hidden text area?
 
 
  My webpage has the following code:
 
   
 
              <textarea name="J__LDESC"
style="visibility:hidden">(NULL)</textarea>
 
   
 
  My watir test has the following code:
 
   
 
              @ie.text_field(:name, "J__LDESC").set("some text")
 
   
 
  I am getting the following error:
 
   
 
                1) Error:
 
  test_MemSlot(TestMemSlot):
 
  WIN32OLERuntimeError: focus
 
      OLE error code:800A083E in htmlfile
 
        Can't move focus to the control because it is invisible, not
enabled, or of a type that does not accept the focus.
 
      HRESULT error code:0x80020009
 
        Exception occurred.
 
      C:/ruby1.8.5/ruby/lib/ruby/site_ruby/1.8/watir.rb:3399:in
`method_missing'
 
      C:/ruby1.8.5/ruby/lib/ruby/site_ruby/1.8/watir.rb:3399:in `set'
 
      C:/workspace/yhj_slot/test/tc_MemSlot.rb:43:in `test_MemSlot'
 
   
 
   
 
  Could someone help me in resolving this issue?
 
   
 
  Thanks

 


  _____  


_______________________________________________
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

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

Reply via email to