Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identify WebElement and Click?
#1
Not Solved At 
Pls go through the attachment and let me know the solution for the same...

I tried the below code also, but didnt work....

Code:
Browser("").Page("").WebTable("").GetRowWithCellText(strExcelData)
Browser("").Page("").WebTable("").ChildItem(strData, 2, "WebElement",
2).Click

So, if anybody knows any hints ... pls let me know.

Regards,
Manish


Attached Files Image(s)
   
Reply
#2
Not Solved
Hi Manish,

As per my perspective on your requirement, suggest you to try in the below way Smile

Code:
Expected_User="Skanda"
   Users_List=Browser().Page().WebTable("Users").GetCellData(2,2)
   temp=Split(Users_List, " ")
   For i=lbound(temp) to Ubound(temp)
        If (Expected_User=temp(i)) then
             Index_Val=i
       Browser().Page().WebTable("Users").ChildItem(2,2,"WebElement",Index_Val).Click
    Exit for
        End if
  Next
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)