A web Page has a webtable with four columns and four rows.
The first column is of ID and has values of 100,100A,A100,100y
Find out the number of rows whose ID starts with 100.
Similarly the last column is 'number of links'. Each row in
the last column has values like link1,link2,link3 etc
Find out the number of links where id is 100
Answer / sagar jadhav
set objWT = Browser("micclass:=Browser").Page
("micclass:=Page").Webtable("html id:=xxxx")
rowCount = objWT.Rowcount
Dim Pass
For i = 2 to objWT 'As row#1 is always a column
num = objWT.GetCellData(i,1)
numCheck = mid(num,1,3)
If strComp(numCheck, "100", 1) = 0 Then
Pass = Pass + 1
End If
Next
msgbox "Number of expected Rows:" &Pass
Is This Answer Correct ? | 5 Yes | 2 No |
Iam trying to write script for Rediffmail Page,in doing so the script line for go button is not accepting. Is their any other way other than . Browser("micClass:=browser").Page("micClass:=Page").Link ("micClasss:=Link","name=go")
can we call runaction in the funcion
Per-Action Vs Shared repository?
What is API
How to map Test cases to the script? Please do anwser urgently?Thanks
What is Modular framework and Keyword drive framework? Explain
what happen in object repository(shared)if we call an existing action from an external action ? and what happen in object repository(peraction)if we call an existing action from an external action ?
How can we fill data in a text box without recording using object spy. Can you please provide the steps...
Tell me about userdefined functions ?
What is the standard timing delay for web based application in qtp?
what is the mediater between qtp and application/project in automation testing?
is it possible to add sheets to excel at runtime