Capturing Webtable Content

How to capture the run time value of the web table?

Questions by madhukumar

Showing Answers 1 - 6 of 6 Answers

akothuru

  • Sep 2nd, 2008
 

1) If you want to retrieve cell value from Web table, use the below code

var_CellValue = Browser("test").Page("test1").WebTable("test2").GetCellData (rownumber, colNumber)


2) If you want to retirve value from the cell which contains Link, use the below code

Set WebLinkObj = Browser().Page().WebTable().ChildItem(row_number, Link_column_no, "Link", 0)
var_LinkName = WebLinkObj.GetROProperty("name")

3) If you want to retrieve property value from WebTable, use the below code and specify what property value you want to retrieve.

var_Value = Browser().Page().WebTable().GetROProperty("html id")

  Was this answer useful?  Yes

kavitasood

  • Apr 7th, 2009
 

var_CellValue = Browser("name:=  ").Page("title:=").WebTable("name: = ").GetCellData(3,1)
msgbox var_CellValue
VarText = assign text you want to search for
If  ( strcomp(trim(var_CellValue) , trim(varText),1)=0) Then
'If ((var_CellValue) =string(varText) ) Then
reporter.reportevent micPass,"Pass","condition Pass"
else
reporter.ReportEvent micFail,"Fail","Condition fail"
End if

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions