7. Given scenario is like this: One Web table is there
and you have to search and retrieve a cell data which is
equal to the given number say:123. Assume you have given
with the column name/id of the table where the number may
exist. So now you have to go to the given column and search
for the number 123 and retrieve it along with the row
number of it.

Answer Posted / balaji s

Vinay there is no need to go this much.we can directly
retrieve using getcelldata metho

row=Browser(..).Page(..).Webtable(..).Rowcount

column=Browser(..).Page(..).Webtable(..).columncount

For i=1 to row
for j=1 to column
val=Browser(..).Page(..).Webtable(..).getcelldata(i,j)
if val="123" then
msgbox "the row is "&i

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

1579


if numbers are always changing write a script for that

3386


What are private functions in QTP? How they can be called from the function library?

632


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

694


Explain calling sub procedure.

621






How qtp recognizes the object?

668


what is the difference between built-i function and In-built function?

1631


how to post xml data from QTP scripts to any application?

1499


How u will do versioning in QTP?

1453


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2176


How can I import environment from a file on disk?

531


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

602


What is file database?

1688


What do you mean by checkpoints in qtp?

556


How many types of object repository in qtp?

602