This is a follow up question to this one -- How to fill a rich text editor field for a Codeception Acceptance test
The solution given on this post, works perfectly on CKeditor version 4.3.2 Standard as seen on this site CKeditor instance but unfortunately does not work on my site's own CKeditor which is version 4.5.10.
Issue with my site's CKeditor - Webdriver throws an error that the name attribute of the textarea
is not found. On the example, working CKeitor this is not an issue, I am able to gain focus and add custom content to the textarea.
Question - is there a big difference between CKeditor 4.3.2 (working) and version 4.5.10 (not working), that would cause this solution not to function?
Textarea on the working site
<textarea id="ckeditor" style="visibility: hidden; display: none;"></textarea>
Using id="ckeditor"
works as expected.
Textarea on my site
<textarea class="js-text-full text-full form-textarea resize-vertical" data-drupal-selector="edit-field-pck-headline-0-value" aria-describedby="edit-field-pck-headline-0--54Lxz-5-U5g--description" id="edit-field-pck-headline-0-value--im63vH7ew8s" name="field_pck_headline[0][value]" rows="5" cols="60" placeholder="" data-editor-active-text-format="full_html" style="visibility: hidden; display: none;"></textarea>
I am using the name="field_pck_headline[0][value]"
but webdriver cant locate this
Thanks for any help in getting focus to the CKeditor textarea on my version (4.5.10). I am glad to provide more details, let me know.
Here is a screen grab of my local CKEditor textarea that I am attempting to gain focus to My local CKEditor textarea