Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting Check boxes by Descriptive Programming
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
I'd try something like this:

Code:
Function CheckAll()
    Dim oDesc: Set oDesc = Description.Create
    oDesc("micclass").Value = "WebCheckBox"
    oDesc("visible").Value = True
    Dim colCheckboxes: Set colCheckboxes = Browser().Page().ChildObjects(oDesc)
    'msgbox colCheckboxes.Count
    Dim i
    For i = 0 To colCheckboxes.Count -1
        colCheckboxes(i).Set "ON"
    Next
End Function

Clearly you would need to provide the Browser and Page descriptions/objects, but then this should show you the number of checkboxes (uncomment the msgbox line) and check them.

I hope this helps.
Reply


Messages In This Thread
RE: Selecting Check boxes by Descriptive Programming - by rnickerson - 12-13-2008, 03:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic descriptive Programming issue in Terminal Emulator cprasad 1 1,946 04-25-2019, 08:17 PM
Last Post: Ankur
  UFT Tool support with Descriptive programming laks 1 1,774 07-05-2018, 05:31 PM
Last Post: Ankur
  UFT Descriptive Programming objects not identified in a secure & private intranet env bugfinder2 1 1,823 06-07-2017, 01:41 PM
Last Post: Ankur
  UFT descriptive programming Browser("creationtime:=-1") not always working SOUMYADEEP 0 3,087 01-20-2017, 01:53 AM
Last Post: SOUMYADEEP
  Inserting variable values into Descriptive Programming Functions eske99 2 3,505 12-18-2015, 01:47 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)