07-29-2010, 08:09 PM
HI spsraj,
You can use the GetRowWithCellText method to work with these scenarios.
Please let me know if you need any more info.
You can use the GetRowWithCellText method to work with these scenarios.
Code:
ClickWebButtonInWT "12345"
Public Function ClickWebButtonInWT(strAccNumber)
blnAccountNames = False
blnDonate = False
For ColCount = 1 to object.ColumnCount(1) ' To get the number of columns.
If trim(object.GetCellData(1,ColCount)) = "Account Names" Then
ColAccountNames = ColCount
blnAccountNames = True
ElseIf trim(object.GetCellData(1,ColCount)) = "Donate" Then
ColDonate = ColCount
blnDonate = True
End If
If blnAccountNames = True and blnDonate = True Then
Exit For
End If
Next
IntRowNum = object.GetRowWithCellText (strAccNumber,ColAccountNames)
Set objWB = object.ChildItem(IntRowNum ,ColAccountNames,"WebButton",0)
objWB.Highlight
objWB.Click
Set objWB = Nothing
End Function
Please let me know if you need any more info.
Thanks,
SUpputuri
SUpputuri