Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.

Answers were Sorted based on User's Feedback



7. Given scenario is like this: One Web table is there and you have to search and retrieve a cell ..

Answer / 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

7. Given scenario is like this: One Web table is there and you have to search and retrieve a cell ..

Answer / mohan

I think we can get row number where text "123 " displayed By
using Get Row With Cell Text method

Is This Answer Correct ?    2 Yes 1 No

7. Given scenario is like this: One Web table is there and you have to search and retrieve a cell ..

Answer / gangadhar reddy

row=Browser( ).Page( ).WebTable( ).GetRowWithCellText("123")

it will returns the Row Number in which the cell data is 123

Is This Answer Correct ?    1 Yes 0 No

7. Given scenario is like this: One Web table is there and you have to search and retrieve a cell ..

Answer / vinny

Hello,
For this scenario we can write in Descriptive program,
You need to create an object and get the total rows count in
the table. Check the below script.
Let say the "id numbers" in the "ID" column are links.

Dim i,j,k
Dim Numberofrows, Links, IDLink, Val

Set IDLink=description.Create()
IDLink("micclass").Value="Link"
IDLink("html tag").Value="INPUT"
IDLink("abs_x").Value=abs_xvalue "note: you can get the
abs_x value of the column and enter the value here"
Set
Links=Browser("micclass:=Browser").page("micclass:=Page").ChildObjects(IDLink)
Numberofrows = Links.Count()

Do While i<=Numberofrows-1

val=trim(Browser("micclass:=Browser").page("micclass:=Page").Link("html
tag:=INPUT","abs_x:="&abs_xvalue,"html
id:=TD","index:="&i).GetRoProperty("value")

if Val = "123" then
msgbox "the Value 123 is in the row:" &i+1
Exit Do
End if
i=i+1
Loop

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More QTP Interview Questions

What are the technologies supported by qtp?

0 Answers  


How can we disable popup blocker? (I think it means when we get a pop up messge(its error) how we wil disable that one with out interrupting normal process)

6 Answers  


wt is the use of multiple questions in QTP

0 Answers   DigiTech,


is there any addin for remedy user application

0 Answers  


What is the difference between call to existing action and copy of an action?

0 Answers  


How should I check my code( Before going to execute) without executing the script in QTP

1 Answers  


HI! I have completed my testing course in 2008. but now am working in banking sector as a data analyst and i want to move to an IT based company but am unable to understand whether i have to complete the testing course again and try for a job .

1 Answers  


how to test one edit box using Java addin for Web Applications? write script?

1 Answers   IBM,


Syntax for how to call one script from another? and Syntax to call one "Action" in another?

2 Answers  


How to handle run time errors?

9 Answers  


QTP in mumbai

0 Answers  


What is meant by virtual obj and Y do v need virtual obj configuration.

4 Answers  


Categories