I have recorded a test using qtp to download a file in an
application.

Code:

Browser("MFA Work Queue Manager").Page("MFA Work Queue
Manager").Link("Rules Maintenance").Click
Browser("MFA Work Queue Manager").Page("Rule
Maintenance").WebEdit("txtSearch").Set "PmtType"
Browser("MFA Work Queue Manager").Page("Rule
Maintenance").WebButton("Search").Click
Browser("MFA Work Queue Manager").Page("Rule
Maintenance").WebButton("Export").Click
Browser("MFA Work Queue Manager").Dialog("File
Download").WinButton("Save").Click
Browser("MFA Work Queue Manager").Page("Rule
Maintenance").Sync
Dialog("Save As").WinButton("Save").Click
Dialog("Save As_2").WinButton("Yes").Click

Problem:

When running this test it gives an error at line no. 5 as
Save button object is not identified by it's parent object.

This code I ran 4 times after recording at it was working
fine but 5th time onwords, it starts giving me the above
problem. I used exist property option, Check Property
option but none of this changes work at all.

Kindly help...



I have recorded a test using qtp to download a file in an application. Code: Browser("M..

Answer / kamakshya prasad

See, there are 2 "save" buttons in your script.
when you are running the script, QTP getting confused due
to the existance of 2 SAVE button, unable to identify them
properly. so they will be distinguished in 3 three way
i) Index value proerty
ii)creation time property
iii)Location property

Use any one of these property, i think it will work


--thanks

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More QTP Interview Questions

How to Identify broken links in QTP

2 Answers   Ness Technologies,


How do client side image and server side image work?

0 Answers  


i'm using QTP 8.2, How should i select(browse) object repository from desktop(or from local local drives like C:\,D:\)?. Note:- object repository to select(browse) is been sent by some other person who is using QTP 9.0

1 Answers  


How to handle Dynamic Arrays?

0 Answers   Wipro,


What is the life cycle of QTP? Pls Give me Exact answer?

6 Answers   Google,


What is difference between shared and local object repository?

0 Answers  


What are the different recording modes and how do they work?

0 Answers  


how to capture tool tip in QTP and which check point is needed

2 Answers   Syntel,


How to see the screens after running test in QTP?

1 Answers  


in one page we have 100 links i have to click the 99th link how can i click the 99th link.

4 Answers   GK Technologies, IBM,


why you have standardized functions? plzzz guys with real time exp. do answer

0 Answers  


How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

0 Answers  


Categories