shayak has asked for the wisdom of the Perl Monks concerning the following question:

I'm doing GUI Automation using Perl. i need to select some check-boxes in a window. But the problem is i don't know the name or the group name of the check boxes. Is there a way to do it? If i can select all the check-boxes also it will be fine. Plz Help..

Replies are listed 'Best First'.
Re: Regarding Checkboxes
by marto (Cardinal) on Feb 08, 2011 at 12:17 UTC

    If you are using Win32::GuiTest try using the spy program listed in the examples to find information about available controls.

Re: Regarding Checkboxes
by Corion (Patriarch) on Feb 08, 2011 at 12:17 UTC

    If the elements have hotkeys assigned to them, you can send the appropriate keystrokes. Otherwise, I have used a combination of the tab key and the cursor keys to navigate such kinds of hostile UIs. See the SendKeys function in Win32::GUITest.

      The Problem of using TAB is that its an automation. So i dont know in which window how many TAB's i have to do. IS there any way to select all the checkboxes. Like whatever check box comes in any window, it just selects it..

        You will need to count the times you need to "press" TAB.