Silk Test Locator Spy does not recognise the Internet Explorer download/notification bar

Silk Test Locator Spy does not recognise the Internet Explorer download/notification bar

If you try to record the locator of the IE notification/download bar, Silk Test does not appear to recognise it (no green box shows around the bar or the buttons inside it). If Microsoft Accessibility is turned on, you may or may not be able to record an action against the bar.

This is a known problem with IE 9 onwards. The root of the problem is that the bar is owner-drawn, so Silk Test cannot see the bar even using the Win32 techdomain. However, if you record the locators and then expand the locator tree until the control is exposed, the control will validate correctly.

The most stable way of ensuring that the testcase plays back is to use scripting for the testcase, ensure Microsoft Accessibility is turned on and then manually code the buttons as follows:

e.g. (in Silk Test Workbench)

With _desktop.BrowserApplication("WebBrowser")
  .SetActive
  .AccessibleControl("Save").Click(MouseButton.Left, New Point(5,5))
End With

Note that not all of the buttons on the bar are AccessibleControls - some are standard PushButtons (e.g. 'Cancel').

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2016-04-12 16:44
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.