Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

There

...

are

...

a

...

few

...

things

...

to

...

avoid

...

in

...

IceFaces

...

that

...

trick

...

Selenium

...

-

...

-

...

here's

...

what

...

to

...

do

...

to

...

make

...

sure

...

Selenium

...

can

...

test

...

everything.

...

Things

...

to

...

do:

...

  1. All

...

  1. clickable

...

  1. images

...

  1. with

...

  1. hyperlinks

...

  1. must

...

  1. have

...

  1. an

...

  1. "alt"

...

  1. text

...

  1. -

...

  1. -

...

  1. if

...

  1. they

...

  1. don't,

...

  1. Cubic Test/Selenium

...

  1. will

...

  1. record

...

  1. fine

...

  1. but will sometimes fail on replay.
  2. Tables with clickable rows should have a fake link in them -- otherwise selenium won't record the click. The fake link should be an <ice:commandLink> with an actionListener that's null -- SessionBean1.nullAction works. Use this as your template:
    <ice:commandLink id="outputLinkRowTitle"

...

  1. style="font-size:

...

  1. medium"

...

  1. value="

...

  1. {currentRow

...

  1. ['title'

...

  1. ]}"

...

  1. actionListener="#{SessionBean1.nullAction}"/>
  2. CubicTest/Selenium does not record actions on rich text fields -- i.e. FckEditor. I don't know why not, but you should plan your tests to avoid adding anything to rich text fields.