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...
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 |
What is the difference in between function and sub as well as give some code of both
How to make arguments optional in a function?
Hi PLZ explain User Defined Functions in QTP with eample?
How will you handle java tree in qtp?
How many types of Actions are there in QTP?
In this bellow script QTP is not able to getting no. of Links from my Browser. Set desc=description.create desc("micclass").value="Link" Set obj=Browser("creationtime:=0").page("title:=.*").childobjects(desc) msgbox obj.count I am getting "General Run Error".Why QTP is not supporting my Browser,but its running fine in other system.Please help me to overcome this problem.
What is Virtual object wizard in QTP?
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
How to Parameterize Object repository in QTP?
my assignment is,how can i differentiate between readed & unreaded mails in my inbox ?, since for both readed & unreaded having same properties for both test objects &run time objects
i am entering wrong data or wrong password in a text box and click on submit button .i am getting a popup window with a message Please enter the correct password or data .How can i handle this situation by using QTP.
what's the difference in between function and sub and give some code as well