Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

click on buttons which have icons on them and not text

by aparna.singh (Initiate)
on Nov 28, 2011 at 10:45 UTC ( [id://940338]=perlquestion: print w/replies, xml ) Need Help??

aparna.singh has asked for the wisdom of the Perl Monks concerning the following question:

I need to navigate through Hammer Ora ( a gui tool used for generating IOs on dtabases). The problems i am facing are : 1. no keyboards control work on the Hammer Ora window, 2. Some of the push buttons that need to be clicked are iconic and do not have text on them. So what perl controls, modules, methods should i use to get through this? Is is possible by only using guitest module or i would need perl tk also?

  • Comment on click on buttons which have icons on them and not text

Replies are listed 'Best First'.
Re: click on buttons which have icons on them and not text
by Anonymous Monk on Nov 28, 2011 at 11:32 UTC
    What you are attempting to do is called GUI automation, search for this for detailed information. Use the modules X11::GUITest or Win32::GuiTest.
Re: click on buttons which have icons on them and not text
by SuicideJunkie (Vicar) on Nov 28, 2011 at 14:53 UTC

    If you are working on windows, you may need to go into the control panel -> mouse -> pointer options and uncheck "enhance pointer precision"

    The above setting was ruining my attempted mouse movements, since the cursor doesn't move the requested distance. (much shorter moves at first, seemed to be much bigger than requested after a few in a row) The cursor wasn't even close to the target button when my code sent the click. :(

      thanks for this information. So could you please guide on which method should be used, because the button which i want to click on does not have test on it. how wisely can i use the mouseClick() using the screen resolution.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://940338]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found