Saturday, July 28, 2012

Working with WebTable


Below are the methods to work with Webtable

*********************************************************************************
ChildItem:
*********************************************************************************

This method is to access child objects from a web table cell in web table object without using description object.

EX:

Browser("Yahoo! Mail: The best").Page("Yahoo! Mail: The best").WebTable("Yahoo! ID:").ChildItem(r,c,"WebEdit",index)

*********************************************************************************
ChildItemCount:
*********************************************************************************
           Returns the number of objects of a specific class type in the specified cell.

EX:

Browser("Yahoo! Mail: The best").Page("Yahoo! Mail: The best").WebTable("Yahoo! ID:"). ChildItemCount(r,c,"WebEdit")

*********************************************************************************
GetCellData :
*********************************************************************************
This method is to retrieve data specific row and column from webtable.

EX:

Browser (“Browser").Page (“Page").Frame ("Frame_3").WebTable ("Job ID_2").GetCellData (3, 5)

*********************************************************************************
GetRowWithCellText:
*********************************************************************************
This method is to retrieve the row number based on text which is present in webtable cell.

EX:

Browser("Yahoo! Mail: The best").Page("Yahoo! Mail: The best").WebTable("Yahoo! ID:").GetRowWithCellText(“Text”)
*********************************************************************************




No comments:

Post a Comment