In Datatable having the data like this

S.no Name Address
1 raj hyderabad
2 suresh Mumbai
3 shyam chennai
4 dev banglore

i want to get the shyam row id & column id using scipting
i.e 3,3

Answer Posted / crazy boy

'' this is to search Shyam row and col in the webtable

DataRow=Browser("title:=givevalue").page("title:=GiveValue").webtable("name:=GiveValue").GetRowWithCellText("Shyam")
msgbox DataRow

ColumnCount=Browser("title:=givevalue").page("title:=GiveValue").webtable("name:=GiveValue").columnCount(DataRow)

for i=1 to Columncount
Data=Browser("title:=givevalue").page("title:=GiveValue").webtable("name:=GiveValue").getcelldata(DataRow,i)
if Data="Shyam" then
msgbox DataColumn
exit for
end if
next

msgbox "The Value is available in Row-->"&DataRow &" and Column -->"&DataColumn

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

1675


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2060


What is qtpro? What is quick test pro? What is a quick test professional?

593


Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

1252


How is test case write?

576






Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1584


Describe how Smart Identification is used

1697


how interviews will be on QTP?

1519


Hello friends..... On which areas of an application we can not test with QTP

1554


what is ODC and GDC?

7348


i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)

1553


Difference between copy to action and call to action?

592


In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.

1529


What are the different properties of an web object

1428


What the differences are and best practical application of Object Repository?

586