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 use library files in QTP? how we can call these files in to script?

4 Answers   Virtusa, Wipro,


Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u

0 Answers   Avenger Software,


If you are testing a web application then what will you test in that application?

0 Answers   Infosys,


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

0 Answers  


Tell me the QTP Advantages and Disadvatages ?

6 Answers   CTS, GE, Accenture,






i m tryed to use qtp in a user registration form but at the "image enter"part it gives a error when i run the qtp bcz the image is changed every time so it gives a error when i use regukar expreesion fot this it still gives a error value bcoz it reads the image code bt nt reconige the image which i enter in the image verification text box.so hw can i automate qtp for this function.plz give me a answer

1 Answers  


i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji

0 Answers  


How to get the run time object property without using GetROProperty

4 Answers  


What is debugging? How you debug your script?

0 Answers  


I want to install qtp software in my system, My operating system is vista . Anybody please suggest me how to get QTP software with licence key

2 Answers  


please write a script to find the text in a application. Note: i dont know the location of that text where it is located. just like negative testing.

2 Answers   BSL,


Hi guys pls any one send me the Qtp Licensed key of version 10.0 pls

0 Answers  






Categories