Re: [wtr-general] Entering XML in textarea

2011-08-02 Thread Raveendran P
Hi, Try thi #*puts doc* => retruns the text So Pelase convert doc into String *doc=doc.to_s* puts doc.class => String (The next line works only the inoput is String or Fixnum.) *$browser.text_field(:id, "NewAEPGrid_ctl02_CoDFBox2").set(doc) * Now it should work .. Let me update here

Re: [wtr-general] Entering XML in textarea

2011-08-02 Thread Charley Baker
Try setting value instead of set. blah.value = doc Cheers, Charley On Tue, Aug 2, 2011 at 4:03 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Tue, Aug 2, 2011 at 5:56 PM, Trevor wrote: > >file = File.new( "C:/canoe1.xml" ) > > Can you provide xml file, so we could t

Re: [wtr-general] Entering XML in textarea

2011-08-02 Thread Željko Filipin
On Tue, Aug 2, 2011 at 5:56 PM, Trevor wrote: >file = File.new( "C:/canoe1.xml" ) Can you provide xml file, so we could try to reproduce the problem? Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -- Before posting, please read http://watir.com/

[wtr-general] Entering XML in textarea

2011-08-02 Thread Trevor
watir version = 1.9.2 ruby version = 1.8.7 Hi, I need to read XML from a document and put it into a textarea. I use REXML to read the file, but when I try to dump this into the textarea I get an error and the field shows [object] eg file = File.new( "C:/canoe1.xml" ) doc = Documen