Could you please any body help me.for example in web table
in the first row and first column there are 3 links like
l1,l2,l3 having indexes 0,1,2 but second time links will
change their order like l2,l3,l1 and indexes also changed
how can we handle this situvation with script....
Answer Posted / kavitapriyacr
At this point, We can do 2 ways
1. If that link can be accessed without help of table then
you should use the property which is unique for each links,
say for example html id/text/inner text etc.
For ex:
Browser("abc").Page("abc").Link("outerhtml:=abc11.*").Click
2. Use descriptive programming as below.
linkCount=Browser("abc").Page("abc").ChildItemsCount
(1,1,"Link")
If linkCount>0 Then
i=0
Flag=0
Do While (i < linkCount OR Flag=0)
oProperty=Browser("abc").Page("abc").ChildItem
(1,1,"Link",i)
If (StrComp(oProperty.GetROProperty("text"),"11")=0)
Then
oProperty.Click
Flag=1
EndIf
i=i+1
Loop
End If
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Discuss quicktest professional (qtp) environment?
Explain the terms test and business component?
How many types of actions are there in quicktest professional (qtp)?
What is the difference between rational rose and QTP?
Explain about the test fusion report of quicktest professional?
if our qtp vb Script may be Currepted then What we want do?
www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example
What are the Disadvantages of shared object repository?
How u will do versioning in QTP?
Why is Client side image is preferred over server side image?
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
what is the diffrence bw qtp architectute and qtp framework?
what is supply chain management?
Can we use index on view?
Explain types of descriptive programming?