cancel
Showing results for 
Search instead for 
Did you mean: 

How to Identify the Save Button in the IE Download Dialog box

nimishbhuta
Frequent Contributor

How to Identify the Save Button in the IE Download Dialog box

Hello, 

In my application, there is option to download the file and when I click download option it shows me the Internet Exporer (IE) Download box with Open and Save button. Please see the screenshot.I need to click on Save and then Save As button to save the file. TestComplete recognize the dialog window but it does not recognize Save button,it actually understands through X &Y co-ordinate and clicks on SaveButton. I don't want to do with x & y cordinate as it is not reliable if the machine resolution changes. 

 

Can you let me know how can I recognize the object and click on it?

 

Regards,

 

Nimsh

8 REPLIES 8
Marsha_R
Community Hero

Re: How to Identify the Save Button in the IE Download Dialog box

Yes, it's generally a pain to automate that.  What do you need to test that includes an IE download?

nimishbhuta
Frequent Contributor

Re: How to Identify the Save Button in the IE Download Dialog box

Hello, 

 

I need to click on SavButton and save the PDF file in my machine and then I can validate the PDF content with the information on the applictaion screen. 

 

Regards,

 

Nimish

Marsha_R
Community Hero

Re: How to Identify the Save Button in the IE Download Dialog box

Okay, try using Object Spy on the button and show us the Advanced values from that window.

nimishbhuta
Frequent Contributor

Re: How to Identify the Save Button in the IE Download Dialog box

Hello Marsh, 

 

I am attaching the object spy screenshot for your reference. 

 

Regards,

 

Nimish

Marsha_R
Community Hero

Re: How to Identify the Save Button in the IE Download Dialog box

See the ... button at the end of the Mapped Name field?  Click on there and look farther down and see if there's a specific item for the Save button, or maybe an indexed list that will let you get to the Save button that way.

nimishbhuta
Frequent Contributor

Re: How to Identify the Save Button in the IE Download Dialog box

Hello Marsh, 

 

I have checked the Mapped field details but it does not show any index no or nor Save button Text. While identifying through the object spy it only identify the dialog box. I can't select the Save Button. Please see the attached screenshot for Mapped field. 

 

Regards,

 

Nimish

 

 

Marsha_R
Community Hero

Re: How to Identify the Save Button in the IE Download Dialog box

I suggest that you contact Support directly about this.  Here's the link:

https://support.smartbear.com/testcomplete/

xuanphuoc2411
Occasional Contributor

Re: How to Identify the Save Button in the IE Download Dialog box

To identify and capture Save button in the IE download dialog box, you must add class "DirectUIHWND" in list MSAA of project. Please below image for more details.

 

Capture.PNG

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors