My requirement is to select a particular row from a web table. Currently i am trying to do the same by the following code:
Dim table , rows, rowid,obj , button , colms
// getting the table object
set table = Browser("title:=Credit Support Annex - New CSA").Page("title:= Credit Support Annex - New CSA").WebTable("html id:=ctl00xcphFormxCSA1xUWTabCSAxxctl1xcsaCounterpa rtyxgrdEntitiesxgvAvailable_main")
// TE1 is the value i am looking for in the table
rowid = table.GetRowWithCellText("TE1")
//getting the col count
colms = table.ColumnCount(rowid)
//returns the object in the particular cell
set obj = table.ChildItem(rowid,colms,"WebElement",0)
// clicking the object inorder to select the corresponding row, however this line is not working as it is not clicking any where in the table.
// getting the button object.
set button = Browser("title:=Credit Support Annex - New CSA").Page("title:= Credit Support Annex - New CSA").WebButton("index:=1","type:=submit")
// clicking the button.
Can any one let me know if i am doing any thing wrong in the above code, as i am not getting the expected output.
I am also attaching the screen shot, for your reference.