[rt-users] selenium webdriver tests

Hugo Escobar hescobar at afslc.com
Wed Nov 14 15:43:04 EST 2012


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 <hescobar at 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20121114/a66296fd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AFS_logo.png
Type: image/png
Size: 3183 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20121114/a66296fd/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: facebook-24x24.png
Type: image/png
Size: 814 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20121114/a66296fd/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin-24x24.png
Type: image/png
Size: 875 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20121114/a66296fd/attachment-0002.png>


More information about the rt-users mailing list