In KM1121645, HP has stated, ''(Internet Explorer 9 and newer) The Download Notification Bar feature included on this version uses new controls, not supported by QuickTest Professional.'' In the article, they include some code as a work-around. However, the code they supplied is dependent on browser size and location and screen resolution. This makes results inconsistent.
The below code will access the Save As object regardless of the screen resolution and browser size.
'This will highlight the download bar to grab focus on it.
Set DeviceReplay = CreateObject(''Mercury.DeviceReplay'') Browser(''creationtime:=0'').WinObject(''nativeclass:=DirectUIHWND'',''regexpwndclass:=DirectUIHWND'', ''index:=0'').highlight
'This will right-click the save button to put focus on it.
Browser(''creationtime:=0'').WinObject(''nativeclass:=DirectUIHWND'',''regexpwndclass:=DirectUIHWND'', ''index:=0'').Clickontext ''Save'',,,,,true,micRightBtn,true
'This will press the 'down arrow' then the 'a' key to activate the drop-down button and then activate the Save As command.
DeviceReplay.PressKey 208 'Presses 'down arrow' key
DeviceReplay.PressKey 30 'Presses 'a' key
Set DeviceReplay = Nothing