Technical mailing list archives


Testing GUI with automation tools

- 12/17/2014 18:17:06
Hi folks,

I'm trying to automate some user testing via the GUI using macro
recording and then parameterising the script.

The tools are having trouble filling in forms because the field IDs are
not static; they seem to be auto-generated at runtime.

The underlying XML form definitions have an ID, but it's not appearing
in the rendered HTML.

How can I programmatically find a given field in a form? Do I need to do
something like XPATH for "the second text input field" or can I refer to
the specific field I want by its ID somehow.

Not that this is the case for both built in forms and for custom module
forms. It seems to be the way the HTML renderer works, for some reason.

Justin Warren <>