IMPORTANT NOTICE: As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site. We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site. We are leaving this site open and active so you can post and hopefully get a response until the migration is complete. Once complete, the URL that currently takes you to this site will take you to our new site so your bookmarks will work as always. Please read the information on a New Login Process
By default Silk Test will commonly try to select an item from a ComboBox using low-level events, i.e. using the mouse pointer to open the ComboBox item, scroll to the item in question and select it. In some instances this low-level approach can sometimes result in the incorrect item being selected that can ultimately result in a test failure. Therefore, Silk Test provides an alternative high-level replay mode that can in most instances provide more stability when selecting items from a ComboBox.
To change to high-level replay mode at runtime, please see the following examples:
[ ] Agent.SetOption(OPT_REPLAY_MODE, 1) [ ] FindComboBox("//ComboBox").Select("Item 1") [ ] Agent.SetOption(OPT_REPLAY_MODE, 0)
desktop.setOption(CommonOptions.OPT_REPLAY_MODE, ReplayMode.HighLevel);desktop.<ComboBox>find("//ComboBox").select("item 1");desktop.setOption(CommonOptions.OPT_REPLAY_MODE, ReplayMode.Default);