Update: solved! This certainly this was more a ckeditor question, but anyway, just in case someone had a similar problem:
the right way to update the textarea using javascript is *CKEDITOR.instances.UpdateContent.insertText('newer content')* On Mon, Nov 12, 2012 at 4:49 PM, Hugo Escobar <hesco...@afslc.com> wrote: > Hi there: > > I been implementing a testing environment for custom code based on > selenium webdriver. > > Testing environment: CentOS 6.3, Apache, MySQL, Firefox. > > So far, I've been successful in running a set of test cases, the only > problem I have is when I try to update the textarea (create, or reply > ticket). The js script executes showing no errors, etc but the content > never changes. My assumption is that the ckeditor is not updating > its content when a value has been assigned to the textarea element. > > I show below a couple of the js snippets of my unsuccessful attempts: > > =-=-=- > document.getElementsByName('UpdateContent')[0].value='Testing ticket > reply.' > > =-=-=-= > > function UpdateFields() { > > > > for (instance in CKEDITOR.instances) { > CKEDITOR.instance.setData('asdfasdfasdf'); > // CKEDITOR.instances[instance].setData('asdfasdf'); > } > } > > > Any help will highly appreciated! > > -- > Hugo Escobar > > > [image: AFS_logo.png] > > Follow us on Facebook and Linked-In > > [image: > facebook-24x24.png]<http://www.facebook.com/pages/Miami-FL/ASSOCIATION-FINANCIAL/64952991864> > [image: linkedin-24x24.png] <http://www.linkedin.com/companies/1006276> > > -- Hugo Escobar [image: AFS_logo.png] Follow us on Facebook and Linked-In [image: facebook-24x24.png]<http://www.facebook.com/pages/Miami-FL/ASSOCIATION-FINANCIAL/64952991864> [image: linkedin-24x24.png] <http://www.linkedin.com/companies/1006276>
<<AFS_logo.png>>
<<facebook-24x24.png>>
<<linkedin-24x24.png>>
-------- We're hiring! http://bestpractical.com/jobs