Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identify the Button in a Web table
#2
Not Solved
HI spsraj,

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
Reply


Messages In This Thread
Identify the Button in a Web table - by spsraj - 07-29-2010, 07:51 PM
RE: Identify the Button in a Web table - by supputuri - 07-29-2010, 08:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Web Table debakanta 6 6,083 06-15-2015, 04:41 PM
Last Post: AMIT35352

Forum Jump:


Users browsing this thread: 2 Guest(s)