This topic provides tips on how to record clicks on calendar widgets (for example, a travel site’s calendar implemented using text input fields) in SOAtest and Virtualize. Sections include: Clicks on text input fields are not recorded as a separate step by default. This is to prevent unnecessary noise. Typing username credentials into a login field, for example, would be recorded as two steps: one for clicking on the field and one for typing. But you can change this behavior to align with the functionality you're validating. For example, travel websites often have departure and return date fields that open a calendar widget when clicked. The date is populated when the user clicks on a date element in the calendar. After creating a web recording with these actions, you may find that the click action on the calendar element was recorded, but the preceding click action on the text input field was not. The calendar element click action will fail during playback because it cannot find the calendar. There are three ways to modify this behavior for recording clicks on text input fields: Modify the UserCustomizableOptions.js file (see the following procedure for details). However, this will cause unneeded tests or actions as described above. Open the configuration file. See Customizing Recording Options for more details. Find the part of the code that resembles the following fragment: Add a Understanding the Default Recording Behavior for Text Input Fields
Modifying the Recording Behavior for Text Input Fields
Modifying the UserCustomizableOptions.js Configuration File
ext.options.clickableInputTypes = [
"submit", //record click event on submit input type element
"button", //record click event on button input type element
"image", //record click event on image input type element
"radio", //record click event on radio input type element
"checkbox", //record click event on checkbox input type element "reset" //record click event on reset input type element
]
text
type anywhere between the brackets "[ ]
":ext.options.clickableInputTypes = [
"text", //text on travelocity.com
"submit", //record click event on submit input type element
"button", //record click event on button input type element
"image", //record click event on image input type element
"radio", //record click event on radio input type element
"checkbox", //record click event on checkbox input type element "reset" //record click event on reset input type element
]
Overview
Content Tools