Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative to using .SetSelection
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Code:
Dim EditToSearch
EditToSearch = "cc"
EditValueToSet = "urvalue"


'Create a description object to help retrieve all WebEdit objects in a specific page.
Set toDesc = Description.Create()
    toDesc("micclass").Value = "WebEdit"
    toDesc("html id").Value = "f"
    toDesc("html tag").Value = "g"
    toDesc("name").Value = "i"

'Retrieve all WebEdit objects in this page
Set EditCollection =Browser("title:=f").Page("title:=g.*").ChildObjects(toDesc)

NumberOfEdits = EditCollection.Count

'Search for a specific Linkobject and set its value
For i = 0 To NumberOfEdits - 1
    If EditCollection(i).GetROProperty("name") = EditToSearch Then
       EditCollection(i).Set EditValueToSet
           End If
Next

hi jnariss,

you need to just change your micclass as per you VBedit and try above code you an get your answer, please let me know if you need more help from my end

Thanks
Mahesh
Reply


Messages In This Thread
Alternative to using .SetSelection - by janriis - 11-23-2009, 03:18 PM
RE: Alternative to using .SetSelection - by upadhyay40 - 11-23-2009, 04:05 PM
RE: Alternative to using .SetSelection - by Saket - 11-25-2009, 09:51 AM
RE: Alternative to using .SetSelection - by Saket - 12-09-2009, 11:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Alternative to Switch case- Multi Select with value match Aakansha_d 11 10,985 06-10-2008, 12:00 AM
Last Post: somisays

Forum Jump:


Users browsing this thread: 3 Guest(s)