Many web applications contain page elements that are hidden until a user mouses over some part of the page that causes other page elements to become visible. One common example is a menu in a menu bar at the top of a web application. Assume that you move your mouse over a menu bar, which exposes menu items, then you click on one of the previously hidden menu items. During recording, SOAtest will not record the mouse movements, but it will record the click that occurred on the previously hidden menu item. During playback, since the mouse movements were not recorded and thus will not be played back, the interactions with the hidden menu element will occur while the element is still hidden.
Depending on how the page was constructed, you will get an error message that the menu element is not present or is not visible. If this occurs, use one of the following methods to add a click action, which will expose the hidden element:
- During recording, click on the element that exposes the hidden element, for example, click on a menu button to open an accordion menu. A click action will be recorded, which will enable the hidden item to be exposed during playback.
- Manually add a click action to the recorded scenario.