Hi,

You can also set the html id directly if you don't need it to be
automatically generated
ie: div wicket:id="myId" id="myId"

Hope this helps,
Sebastien.


On Mon, Feb 6, 2017 at 4:58 PM, Entropy <blmulholl...@gmail.com> wrote:

> Our test team wants to run selenium scripts against our pages, and wants
> stable IDs to go against.  Wicket tends to generate random, and most
> annoyingly, inconsistent ones that change with each run of the page.
>
> Obviously, we can setMarkupId on every component manually, but I was
> wondering if there is a way to get Wicket to generate Ids in a way that is
> more predictable, so that 1000 runs of the same page with the same code
> will
> always produce the same IDs, even if they are generated IDs?
>
> Like maybe some setting or overriding some class?
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Generated-IDs-tp4677000.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to