Hi Raj,
In your case I recommend using the
Page.EvaluateXPath method to get the collection of grid elements. See
Finding Web Page Elements by Using XPath Expressions.
The XPath expression for selecting the edit link in the 10th row will be similar to this one:
(//TABLE[@class='dtbl']//TR//TD//A[@class='editRow'])[10]
Sub Test
' Obtain the Page object
Set page = Sys.Process("firefox").Page("https://scrmqa.autobase.net/Crm/Customer")
' Call the function
obj = page.EvaluateXPath("(//TABLE[@class='dtbl']//TR//TD//A[@class='editRow'])[10]")
' Check the result
If VarType(obj) <> varNull Then
' If the element was found, click it
obj(0).Click ' Note we refer to the array item
Else
' If the element was not found, post a message to the log
Log.Message "The element was not found"
End If
End Sub