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



We have an application which generates links( more than thousand) based on the time stamp dynmical..

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

We have an application which generates links( more than thousand) based on the time stamp dynmical..

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

We have an application which generates links( more than thousand) based on the time stamp dynmical..

Answer / vinodhanandhan

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

Post New Answer

More QTP Interview Questions

can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

0 Answers  


hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)

0 Answers   Livetek,


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

0 Answers  


With what extension you can save the list of tests in a file to run in test batch runner?

0 Answers  


Diff b/w WEB TESTING AND Client server testing?

3 Answers   Ordain Solutions,






If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

0 Answers   Infosys,


Hello! i am having two comboboxes.Each having 10 items in it.when i select first item in first combobox,it is not similar in the second combobox.for ex in first combo if it is Hyderabad,in second it should be some chenai or some other item .Write a VBSCRIPT for that?

3 Answers   Tech Mahindra,


How QTP recognizes Objects in AUT?

1 Answers   Crea,


How to handle Dynamically changing Objects in QTP?

4 Answers  


What is All object and Local object in Object Repositary? Explain me please.

3 Answers  


Extract a word from a sentenece?

5 Answers   IBM,


How to load an object to a object repository at RUN TIME ?

3 Answers  


Categories