This chapter addresses topics that are only relevant when testing web applications in a browser.
Hidden fields are not captured by default and therefore not stored under the 'Windows and components' node.
In case you frequently need to access hidden fields you can deactivate the Take visibility of DOM nodes into account option.
Another way to get hidden fields recorded is the following:
To access a hidden field's attributes (e.g. the 'value' attribute) you can create a simple 'SUT script' as shown below. Details on scripting in general, the used methods and parameters can be found in Scripting, Run-context API and Pseudo DOM API respectively.
|Example 47.6: Accessing the value attribute of a hidden field|
|Last update: 5/17/2022|
Copyright © 1999-2022 Quality First Software GmbH