Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: usage of pushbutton

by nisu (Initiate)
on Nov 21, 2012 at 17:28 UTC ( #1004970=note: print w/ replies, xml ) Need Help??


in reply to Re: usage of pushbutton
in thread usage of pushbutton

Im refering Win32::GuiTest itself. I have gone through calculator example and im using that . Can you please tell me how to use PushButton command to click OK or Cancel in any installation screen. If that works, i can proceed further without any problem.


Comment on Re^2: usage of pushbutton
Re^3: usage of pushbutton
by Anonymous Monk on Nov 21, 2012 at 19:22 UTC

    Can you please tell me how to use PushButton command to click OK or Cancel in any installation screen. If that works, i can proceed further without any problem.

    What happened when you tried, did it work?

    See Win32/OLE related tutorials/examples/resources , there is a good number of guitest related tutorials utilities

Re^3: usage of pushbutton
by marto (Bishop) on Nov 21, 2012 at 19:41 UTC

    The buttons for the application are most likely different from that of calc.exe. A google search for the names of the tools you claimed to be using shows GUI tests automation - Tutorial (among other) which is a good starting point.

    Again you've not given any specific information. I know you are new to this site, and perhaps to Perl and programming in general, however basic problem solving skills are required regardless of the language. You haven't shown an example of what you've tried, or explained how it doesn't work. In order to make it easier for people to help you, please read and understand the links I have already provided.

      hi.. this is the code which i wrote..
      #!/usr/bin/perl use Win32::GuiTest qw( FindWindowLike PushButton ); $path = 'C:\Symantec DLO\setup.exe'; system("$path"); PushButton('00001F35') ; sub PushButton { $result = "00001F35"; print "res :$result"; }
      It is printing result properly. But im not able to do push button.

        You have redfined PushButton for no reason, so you're not using the module you claim to have studied. I have no idea why, or what you think this should be doing. You assign a value to $result, and print it to the screen. Nothing more. Why don't you actually read and understand the example code for pushbutton I pointed you to yesterday. Note that your code doesn't do anything like this. Learn from a working example and apply the working method to your problem. Please use code tags when posting code, advice to do so is displayed each time you post and in How do I post a question effectively?.

      Yes Marto, I will refer to links which you provided and will proceed further. If i come across any issues I will get back to you.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2014-12-26 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls