ID generation policy, Selenium, and HTML test cases

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ID generation policy, Selenium, and HTML test cases

Florent Georges-3
  Hi

  I am looking for the ID generation policy in Orbeon for the
XForms components.  I mean that when Orbeon transforms XHTML +
XForms into HTML or XHTML + HTML Forms, some IDs are added to
the HTML Forms elements, or to DIV or SPAN elements.  I think
this is done in the processor oxf:xforms-output.

  I wondered if there is a precise description of how those
IDs are generated.  For instance, it seems Orbeon uses the
attribute "id" on the XForms elements, if any.  But how does
it generate IDs within an xforms:repeat for instance?  Is
there any way to customize that if needed?

  The context is that we are writing tests at the HTML level
(using Selenium).  The tests are based on the ID of HTML
elements.  So we have to be sure the ID won't change (or to
know the conditions under which they would change), and
eventually how to help Orbeon generating "right IDs" (matching
our needs).

  Maybe other ones here have feedback on using tools like
Selenium with Orbeon applications?

  Regards,

--drkm























      _____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: ID generation policy, Selenium, and HTML test cases

Erik Bruchez
Administrator
This is done within the oxf:xforms-to-xhtml processor.

Elements that have ids keep them. Those that don't have ids get an id  
generated in sequence.

Repeat iterations get the id of the repeat followed by the funny "."  
character, followed by an iteration path, e.g. "2-1-4", which means "I  
am in the 4th iteration of the 1st iteration of the 2nd iteration" in  
the repeat hierarchy. That's pretty much it!

-Erik

On Jun 26, 2008, at 4:39 AM, Florent Georges wrote:

>  Hi
>
>  I am looking for the ID generation policy in Orbeon for the
> XForms components.  I mean that when Orbeon transforms XHTML +
> XForms into HTML or XHTML + HTML Forms, some IDs are added to
> the HTML Forms elements, or to DIV or SPAN elements.  I think
> this is done in the processor oxf:xforms-output.
>
>  I wondered if there is a precise description of how those
> IDs are generated.  For instance, it seems Orbeon uses the
> attribute "id" on the XForms elements, if any.  But how does
> it generate IDs within an xforms:repeat for instance?  Is
> there any way to customize that if needed?
>
>  The context is that we are writing tests at the HTML level
> (using Selenium).  The tests are based on the ID of HTML
> elements.  So we have to be sure the ID won't change (or to
> know the conditions under which they would change), and
> eventually how to help Orbeon generating "right IDs" (matching
> our needs).
>
>  Maybe other ones here have feedback on using tools like
> Selenium with Orbeon applications?
>
>  Regards,
>
> --drkm
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>      
> _____________________________________________________________________________
> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws