Setting the ShowListItem Option

To change the level of recognition of text contained within HtmlList controls in your browser, you must set the value of the ShowListItem option. For instance, if mouse events are associated with your list items, check this check box or set this value to TRUE, so Silk Test Classic can interact with the list items. You can do this in the following ways:

  • On the DOM Extensions dialog box, check the List Item check box. Access this dialog box by clicking Options > Extensions, enabling the browser extension in the Primary Extension column, and then clicking Extension in the Options area. Note that the browser extension must be enabled before you can click Extension. The information that you enter on this dialog box is saved in the domex.ini file. This setting is global. However, if you want to set this option for only certain points in your script, use BrowserPage.SetUserOption().
  • In the domex.ini file, set the ShowListItem value to TRUE. This setting is global. However, if you want to set this option for only certain points in your script, use BrowserPage.SetUserOption().
  • Modify your script by setting the option within the script itself. This does not apply the value to the whole script but applies the value after that point in your script. You can use this method to adjust the level of recognition within your scripts, as you require. You do this by entering the following into your script:
    BrowserPage.SetUserOption ("ShowListItem",  true)