In a webtable, lets say there are 10 records and 1 column.
let say "image" is available for 1st,2nd and 3rd records and
4th onwards image is not available. How to recognise for
that cell image is available or not?
Answer Posted / nalini
We can use childitemcount method to get the image count in
a cell.
Rcnt=Browser("title:=.*").page("title:=.*").WebTable
(t).RowCount
imgcnt=0
For i=1 to Rcnt
imgcnt = Browser("title:=.*").page("title:=.*").WebTable
(t).ChildItemCount(i, 1, "Image")
Reporter.ReportEvent 0,"imgcount",imgcnt& " images
available in row# "& i & " and column1"
Next
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How to connect to a database?
How to use setroproperty?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
What are output values and why they are used ?
How to define array in qtp?
What is the difference between run time object and test object in QTP?
What are the challenges you faced during you entire life automation ?
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
How many types of parameters are available in quicktest professional (qtp)?
What is business process testing(bpt) in qtp?
Explain the types of object repository?
how can i pass a "cript"as a parameter in to a function
What are the challenges u faced in testing with crm domain? How u overcome with?