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....
Answers were Sorted based on User's Feedback
Answer / 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 |
I want to open a GOOGLE page without recording a test in QTP.Can any one answer me?
How u call functions in QTP Function to calculate the length of characters in a word -
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
What is Port testing. Whhen will you perform?
What is the registration process and examination fees?
in a web page How to check and display a particular word from a paragraph?
Differentiate the type of test cases which can be automated and which cannot be automated?
i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording
Do you support automated testing? Why?
Could someone explain me how to work on Out put values, explain with some example on Flight Reservation. I want to insert the out put value for the order No. Please explain the steps with some example.
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
does test plan is in test strategy or test strategy is in test plan