Community: Framework mailing list archives

expert-framework@mail.odoo.com

Testing GUI with automation tools

by
Justin
- 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 <justin@eigenmagic.com>