08-09-2010, 05:30 PM
Hi Skanda,
I used the above coding / logic, but its not workin... also i used the below given code, but this too not workin...
I used the above coding / logic, but its not workin... also i used the below given code, but this too not workin...
Code:
strVar = "ruser"
Set ROElement = Description.Create()
ROElement("Class Name").Value = "WebElement"
ROElement("class").Value = "treeNodeNormal"
ROElement("html id").Value = "treeNode-200-.*"
Set myElement = Browser("").Page("").WebTable("").ChildObjects(ROElement) 'General Run Error in this line
'Set myElement = Browser("").Page("").ChildObjects(ROElement) ' General Run Error in this line
Set myElementCount = myElement.Count
For k=0 to myElementCount-1
If myElement(k).GetROProperty("outertext") = Trim(strVar) Then
'myElement(k).Highlight
myElement(k).Click
Exit for
End If
Next