We have an application which generates links( more than
thousand) based on the time stamp dynmically.Each link will
download an xls file. we are supposed to click a particular
link (which link to click will be obtained thru some
buisiness logic).Now the issue is QTP is not recogniging
the link(say Var1) though its properties showed mandatory
fields text=xyz and html tag=A.I used following code to do
this.
Browser("ABC").Page("123").Link("text:=" &Var1,"html
tag:=A").click, can any one suggest why this is not
recognised by QTP though syntax is correct?(Is there any
sync issue to be considered?Because on clicking the link it
will take 5 mins to open that file)
Answers were Sorted based on User's Feedback
Answer / sachin
Thier was a similar issue faced while recording and
playing back the script.The scenario is described as below.
i have a windows based application ..i recorded an event
when where-in the application adds a contact to its contact
list
now the issue that i faced was after recording an event of
adding manually adding contact in the aplliction.i tried to
play back.But thier was a strange result. I Tool could
identify the Appliction but when it tries to execute the
recorded script for adding contact its fails.Infact the
same operation was successfully completed by the tool in
all previous version of the client.
Later after geting application design from the develpment
team it was known that actualy the form that load in
runtime ..so the respository value of the form did not
match with its run time value.Hence the tool fails at that
particular instance
guess the same scenario is depicted in the code mentioned
above.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dimple
Hey
try taking the innerText for thelink instead of text
or try using regular expression.
Hope this will help u
| Is This Answer Correct ? | 0 Yes | 0 No |
You can't use variable inside static dp. Everything should be static as the name suggest.Try using dynamic dp.It will definately work
| Is This Answer Correct ? | 0 Yes | 0 No |
when qtp recognizes a web link like (hyper link)wich properties it is going to take to identify the objects unquely? what is Ini file in QTP?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
What is a runtime datatable ?
Get the count of files of similar types from a folder.
if i have 10 actions and out of 10 actions last 3 actions i renamed will my script exicute sucesfuly r not? changed actions where i can see?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
What is Step generator in qtp? wt is the use? can u any body explain me? plz
how to write code for to select all the checkboxs in the gmail i wrote code for my question but it didn't works any body suggest what wrong my code my code is Set chkboxDesc=Description.Create() chkboxDesc("type").value="chekbox" Set chboxcollection=Browser("name:=Gmail .*").Page("title:=Gmail .*").ChildObjects(chkboxDesc) For i=0 To chboxcollection.count-1 chboxcollection(i).set "ON" Next i was getting general run time error pls help me i am in learing stage
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?
Associated files in QTP?
How to Synchronize the Browser at Field level? For example if you put Browser.sync(), it will wait upto for that Browser sync only. But It should wait upto total Browser get uploaded with all fields. Note : We don't know Which fields will come in that Browser. Means without knowing field names.
What is the current version of QTP and now it is the product of Mercury or HP