In writing scripts, it can be assign the values of numerous form fields to variables. Is there a way to simply loop through all the form fields within a web form and save each field value to a variable named after the field’s id attribute? (Assuming of course, that each field has a unique id attribute)
Something like this:
Target: xpath=(//[@data-label=“Variable Name”])@value
Value: lower(substitute(“Variable Name”," “,”_"))
This is just a simple example that isn’t coded properly but you can see how this would going through lots form fields to assign variables for latter use in the script.
Can this be done?