Specify which DOM attribute names should be used when recording a Browser Driven script
In the same way that it is possible to specify which DOM attribute names should be ignored it is also possible to specify which attribute names are preferred. This can be specified as follows:
SETTINGS | ACTIVE PROFILE | WEB (BROWSER DRIVEN) | RECORD |
If the options are greyed out then click the record button at the top left.
This is useful in scenarios where it is preferable to record a particular attribute name (e.g. textContents), but where you also want the recorder to choose another value if textContents is not available (e.g. id).