Setting Browser Recording Options

Specify browser attributes to ignore while recording and whether to record native user input instead of DOM functions.
Note: All the following settings are optional. Change these settings if they will improve the quality of your test methods.
  1. Click Silk4J > Edit Options. The Script Options dialog box opens.
  2. Click the Browser tab.
  3. In the Locator attribute name exclude list grid, type the attribute names to ignore while recording. For example, if you do not want to record attributes named height, add the height attribute name to the grid. Separate attribute names with a comma.
  4. In the Locator attribute value exclude list grid, type the attribute values to ignore while recording. For example, if you do not want to record attributes assigned the value of x-auto, add x-auto to the grid. Separate attribute values with a comma.
  5. To record native user input instead of DOM functions, check the OPT_XBROWSER_RECORD_LOWLEVEL check box. For example, to record Click instead of DomClick and TypeKeys instead of SetText, check this check box. If your application uses a plug-in or AJAX, use native user input. If your application does not use a plug-in or AJAX, we recommend using high-level DOM functions, which do not require the browser to be focused or active during playback. As a result, tests that use DOM functions are faster and more reliable.
  6. To set the maximum length for locator attribute values, type the length into the field in the Maximum attribute value length section. If the actual length exceeds that limit the value is truncated and a wild card (*) is appended. By default this value is set to 20 characters.
  7. To automatically search for an unobstructed click spot on the specified target element, check the OPT_XBROWSER_ENABLE_SMART_CLICK_POSITION check box.
  8. Click OK.