Selenium and p:editor

UI Components for JSF
Post Reply
andre.campos
Posts: 13
Joined: 29 Mar 2011, 15:43

08 Nov 2011, 23:30

So I am trying to write a test case with Selenium for a page that has a p:editor in it. Turns out that type or typeKeys won't do the trick. Has anyone been able to test p:editor with a Selenium script?

Cheers!

andre.campos
Posts: 13
Joined: 29 Mar 2011, 15:43

09 Nov 2011, 15:18

I figured it out myself, in case anyone is interested. The component renders a hidden textarea and Selenium's type command works fine if you use the id of the textarea. You won't see anything being typed on the browser if you're using Selenium IDE (because the textarea is hidden after all), but the field will get submitted properly.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests