You can customize the clickable elements that can be recorded during scenario recording. The script to modify is located in the following directory:
Chrome: UserCustomizableOptions.js script in the <INSTALL>/plugins/com.parasoft.ptest.libs.web_<VERSION>/root/browsers/chrome/
directory.
Recording Variables
The following array variables defined in the UserCustomizableOptions.js script are used during recording:Table of Content Zone | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||
ext.options.clickableAttributesClicking on HTML elements that are set with an attribute type defined in this variable will be recorded. For example, ext.options.clickableTagsClicking on HTML tags defined in this variable will be recorded. In an Ajax web application, for instance, there are cases in which tags, such as ext.options.clickableInputTypesClicking on form input types defined in this variable will be recorded. Types, such as ext.options.structuralTags / ext.options.containerTagsThese variables limit the scope of user actions recorded against elements. User actions are not recorded for elements named in the For example, click actions on
ext.options.disallowedTagsThis variable contains a list of tags that will never be recorded, even if they satisfy other recording criteria. ext.options.locatorBuildersOrderThis variable defines the order used for creating locators. Locators identify the HTML element at which the user action takes place and are needed during playback to repeat user actions. The default order is constructed such that visual attributes in an element are more favorable when creating the locator:
Enable debugging information to find out which locator builder is used. Choose Parasoft > Preferences > Browser and enable Print debugging information. In the following example, the i
See Browser Settings for more information about this option. ext.options.preferredAttributesOrderThis field is used by the locator ext.options.displayDialogsSet this variable to ext.options.xpathLibraryYou can use this variable to specify an XPath library for resolving XPath locators used in web scenarios. This option has three possible values:
|