cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with IE and downloading/saving files to desktop

dyarwood
Contributor

Problem with IE and downloading/saving files to desktop

Hi,



I was wondering if anyone has a problem with the popup dialog in IE that they use to open or save files when downloading documents?



The object browser calls this the Frame Notification Bar in general and it's apparently composed of several UIAObject("Notification"). 



I'm having inconsistent results when mapping it. Some elements seem to be easily accessible (the text and Close buttons for example never fail). The other buttons though, they work sometimes and other times fail "Object not found." I've been able at times to map the buttons easily only to right-click and test "Highlight object on Screen" and watch it fail. Other times the object spy picks the Save button right up, but if I try to map it the window frame is as deep as the recognition by TestComplete goes. It seems to work the first time my test runs, but only that first time. 



If anyone else out there has had problems with this popup I'd really appreciate a few pointers on how to reliably get it to work. I'm using keyword tests on TC10 on IE11.



I've put a few screenshots up. The first simply shows the IE dialog. Then I show it in the Object Browser, etc.



Thanks,

David

















8 REPLIES 8
AlexKaras
Community Hero

RE: Problem with IE and downloading/saving files to desktop

Hi David,



These articles might help you:

-- Add the DirectUIHWND class to the MSAA settings.

http://smartbear.com/forums/f75/t60772/ie-8-file-download-box-save-button-not-gettin/;

-- Old article, but some code pieces might to appear to be relevant

http://support.smartbear.com/articles/testcomplete/cross-browser-testing/.



AFAIK, MSAA-based approach still works quite fine.
Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
TanyaYatskovska
Community Manager

RE: Problem with IE and downloading/saving files to desktop


Hi David,


 


There are at least two views of this download panel:


1. Before downloading




 


2. After downloading




 


The screenshots you attached are referring to the second view when there is the View Downloads button, but there is no Save.


Although, you are talking about the first view. Could you please check that?

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
dyarwood
Contributor

RE: Problem with IE and downloading/saving files to desktop

Hi Tanya,



Yes there are 2 views. I'm trying to map the Save button on the first view - that's where I have problems consistently.



Thanks Alexei! I added DirectUIHWND, #32770 and UIAObject to MSAA under Tools - Current Project - Open Applications and at least for this morning it's working well. It's picking up the Save button every time so far. It is recognizing the object now as SplitButton("Save") but that's an easy update. 



David 
TanyaYatskovska
Community Manager

RE: Problem with IE and downloading/saving files to desktop


Hi David,


 


As far as I see from the screenshots, you've added the UIAObject class to the MSAA list. However, I don't recommend that you map UI Automation objects under MSAA. It's better to use UI Automation technology for such objects. So, I suggest that you remove this class from the MSAA windows.


 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
dyarwood
Contributor

RE: Problem with IE and downloading/saving files to desktop

Hi Tanya,



Thanks for the info. If that's the right way to do it then I will remove the steps from my test that interact with IE's Save dialog and try to implement your suggestion. Could you be a little more descriptive though when you say UI Automation? This is the record & playback novice in me speaking, but what are you referring to as UI Automation? That's what I think I'm doing with TestComplete now.



Thanks,

David
TanyaYatskovska
Community Manager

RE: Problem with IE and downloading/saving files to desktop


Hi David,


 


There are several approaches to improve object recognition in TestComplete. The most popular are UI Automation and MSAA. You can read more about them in TestComplete articles here and here or in MSDN. What technology you need to use depends only on your tested application. In other words, your app should support one of them.


To make TestComplete use one of the technologies, the corresponding window class must be specified in project settings:




 


 


If, as in this case, it's possible to use both technologies to help TestComplete recognize objects, you need to choose what you will use and continue using it for all your tests. For IE dialogs, I prefer using MSAA. It doesn't mean that UI Automation isn't a good solution. That's only because I got used to it.


 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
ssingh639
Occasional Visitor

Re: RE: Problem with IE and downloading/saving files to desktop

hi,

probably you are suing IE11 in win-10. In win-10 it reads it is recognizing the object now as SplitButton("Save"), but in win-7, TC-11.3 reads it as :

Sys.Browser().BrowserWindow(0).Window("Frame Notification Bar").UIAObject("Notification").UIAObject("Save").UIAObject(1).Click()

 

so, if you are doing destributed testing on different plateforms, it doesnt work identical for both the plateforms.

can anyone help on this?

 

 

Thanks & Best regards

-Samar

9681010639

AlexKaras
Community Hero

Re: RE: Problem with IE and downloading/saving files to desktop

Hi Samar,

 

Are you asking a question or replying to the four years-old thread?

If the former, could you please be more specific with the problem and what you have tried?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors