Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identify WebElement and Click?
#3
Not Solved
Hi Skanda,

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
Reply


Messages In This Thread
RE: Identify WebElement and Click? - by manishddeshmukh - 08-09-2010, 05:30 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)