Loading ...
Sorry, an error occurred while loading the content.
 

Re: [perlguitest] Re: Couldnt open Notepad.exe

Expand Messages
  • Hrushi K
    Thank you Sir, I was really happy on seeing the test run Thanks again and really appreciate the quick response from your end. regards-Ron ...
    Message 1 of 25 , Jun 12, 2005
      Thank you Sir,
      I was really happy on seeing the test run
      Thanks again and really appreciate the quick response
      from your end.

      regards-Ron
      --- Gabor Szabo <szabgab@...> wrote:

      > ... to install it open a command prompt (Run/cmd)
      > and type
      > ppm install Win32::GuiTest
      > or
      > better yet download and unzip the latest version
      > from here
      >
      http://search.cpan.org/CPAN/authors/id/C/CT/CTRONDLP/Win32-GuiTest-1.50.3-ad.zip
      > and then type within the opened directory:
      >
      > ppm install Win32-GuiTest.ppd
      >
      > After that you will get some other error message
      > when running your code.
      > try this:
      >
      > use Win32::GuiTest qw(:ALL);
      > system "start notepad.exe";
      > sleep 1;
      > SendKeys("{TAB}");
      >
      >
      >
      > Gabor
      >
      > On 6/10/05, pkaluski <pkaluski@...>
      > wrote:
      > > Hi,
      > > It looks like you don't have Win32::GuiTest
      > installed.
      > > -Piotr
      > >
      > > --- In perlguitest@yahoogroups.com, Hrushi K
      > <ronnie13263@y...> wrote:
      > > > Hi All ,
      > > > I am new to perl scripting.I wrote the following
      > code
      > > > but cannot stsrt an exe file.
      > > >
      > > > #usr/local/bin/perl
      > > >
      > > > use Win32::GuiTest qw(:ALL);
      > > > start"notepad.exe";
      > > > sleep 1;
      > > > SendKeys("{TAB}");
      > > >
      > > > I encountered the following error.:-
      > > >
      > > > Can't locate Win32/GuiTest.pm in @INC (@INC
      > contains:
      > > > e:/InstalledPerl/lib e:/In
      > > > stalledPerl/site/lib .) at Notepad.pl line 3.
      > > > BEGIN failed--compilation aborted at Notepad.pl
      > line
      > > > 3.
      > > >
      > > > Can anybody help please?.
      > > > Regards-Ron
      > > >
      > > >
      > > >
      > > > __________________________________
      > > > Discover Yahoo!
      > > > Have fun online with music videos, cool games,
      > IM and more. Check
      > > it out!
      > > > http://discover.yahoo.com/online.html
      > >
      > >
      > >
      > >
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      > >
      > >
      > >
      > >
      >
      >
      > --
      > Gabor Szabo
      > Perl in Israel
      > http://www.pti.co.il
      > 08-975-2897
      > 054-4624648
      >




      __________________________________
      Discover Yahoo!
      Find restaurants, movies, travel and more fun for the weekend. Check it out!
      http://discover.yahoo.com/weekend.html
    • Hrushi K
      Hi All, I am really thankful to the group for providing useful guidance.I am facing a new problem now.I cant make perl open a particular url for testing.I have
      Message 2 of 25 , Jun 12, 2005
        Hi All,
        I am really thankful to the group for providing useful
        guidance.I am facing a new problem now.I cant make
        perl open a particular url for testing.I have written
        the following code-but the url is not typed in the
        address bar while running the scrips-most of the
        colons or backslashes are not typed-Can anybdy help me
        out please?

        #!usr/bin/perl
        use Win32::GuiTest;
        system("start IExplore.exe");
        sleep 4;
        Win32::GuiTest::SendKeys("{TAB}");
        sleep 2;
        Win32::GuiTest::SendKeys("https:\\asterix\sites\a123\default.aspx");
        sleep 4;
        Win32::GuiTest::SendKeys("{ENTER}");
        sleep 4;
        Win32::GuiTest::SendKeys("{TAB}");
        Win32::GuiTest::SendKeys("{TAB}");
        Win32::GuiTest::SendKeys("{ENTER}");
        Win32::GuiTest::SendKeys("ABCD");
        Win32::GuiTest::SendKeys("{TAB}");
        Win32::GuiTest::SendKeys("1234");
        Win32::GuiTest::SendKeys("{ENTER}");

        Perl misses out the backslashes on typing the url-
        pls suggest an alternative

        Ragrds-Ron



        __________________________________
        Discover Yahoo!
        Stay in touch with email, IM, photo sharing and more. Check it out!
        http://discover.yahoo.com/stayintouch.html
      • pkaluski
        In order to make perl print a backslash you need to use string . Try this: https: asterix sites a123 default.aspx . But you don t you just use
        Message 3 of 25 , Jun 12, 2005
          In order to make perl print a backslash you need to use string "\\".
          Try this:
          "https:\\\\asterix\\sites\\a123\\default.aspx".
          But you don't you just use ordinary slashes?
          -Piotr



          --- In perlguitest@yahoogroups.com, Hrushi K <ronnie13263@y...> wrote:
          > Hi All,
          > I am really thankful to the group for providing useful
          > guidance.I am facing a new problem now.I cant make
          > perl open a particular url for testing.I have written
          > the following code-but the url is not typed in the
          > address bar while running the scrips-most of the
          > colons or backslashes are not typed-Can anybdy help me
          > out please?
          >
          > #!usr/bin/perl
          > use Win32::GuiTest;
          > system("start IExplore.exe");
          > sleep 4;
          > Win32::GuiTest::SendKeys("{TAB}");
          > sleep 2;
          > Win32::GuiTest::SendKeys("https:\\asterix\sites\a123\default.aspx");
          > sleep 4;
          > Win32::GuiTest::SendKeys("{ENTER}");
          > sleep 4;
          > Win32::GuiTest::SendKeys("{TAB}");
          > Win32::GuiTest::SendKeys("{TAB}");
          > Win32::GuiTest::SendKeys("{ENTER}");
          > Win32::GuiTest::SendKeys("ABCD");
          > Win32::GuiTest::SendKeys("{TAB}");
          > Win32::GuiTest::SendKeys("1234");
          > Win32::GuiTest::SendKeys("{ENTER}");
          >
          > Perl misses out the backslashes on typing the url-
          > pls suggest an alternative
          >
          > Ragrds-Ron
          >
          >
          >
          > __________________________________
          > Discover Yahoo!
          > Stay in touch with email, IM, photo sharing and more. Check it out!
          > http://discover.yahoo.com/stayintouch.html
        • Angel Rodriguez
          Hello Hrushi, Try something like https : asterix sites a123 default.aspx which tells perl you realy mean what is after the first backslash. Rod ... --
          Message 4 of 25 , Jun 13, 2005
            Hello Hrushi,

            Try something like

            https\:\\\\asterix\\sites\\a123\\default.aspx

            which tells perl you realy mean what is after the first backslash.

            Rod

            Monday, June 13, 2005, 1:10:12 AM, you wrote:

            > Hi All,
            > I am really thankful to the group for providing useful
            > guidance.I am facing a new problem now.I cant make
            > perl open a particular url for testing.I have written
            > the following code-but the url is not typed in the
            > address bar while running the scrips-most of the
            > colons or backslashes are not typed-Can anybdy help me
            > out please?

            > #!usr/bin/perl
            > use Win32::GuiTest;
            > system("start IExplore.exe");
            > sleep 4;
            > Win32::GuiTest::SendKeys("{TAB}");
            > sleep 2;
            > Win32::GuiTest::SendKeys("https:\\asterix\sites\a123\default.aspx");
            > sleep 4;
            > Win32::GuiTest::SendKeys("{ENTER}");
            > sleep 4;
            > Win32::GuiTest::SendKeys("{TAB}");
            > Win32::GuiTest::SendKeys("{TAB}");
            > Win32::GuiTest::SendKeys("{ENTER}");
            > Win32::GuiTest::SendKeys("ABCD");
            > Win32::GuiTest::SendKeys("{TAB}");
            > Win32::GuiTest::SendKeys("1234");
            > Win32::GuiTest::SendKeys("{ENTER}");

            > Perl misses out the backslashes on typing the url-
            > pls suggest an alternative

            > Ragrds-Ron


            >            
            > __________________________________
            > Discover Yahoo!
            > Stay in touch with email, IM, photo sharing and more. Check it out!
            > http://discover.yahoo.com/stayintouch.html






            > Yahoo! Groups Links
            > To visit your group on the web, go to:
            > http://groups.yahoo.com/group/perlguitest/
            >  To unsubscribe from this group, send an email to:
            > perlguitest-unsubscribe@yahoogroups.com
            >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.






            --
            Best regards,
            Angel
          • Hrushi K
            Thanks all for your valuable help- but is there some way by which web applications can be launched and various objects within the application can be
            Message 5 of 25 , Jun 13, 2005
              Thanks all for your valuable help-
              but is there some way by which web applications can be
              launched and various objects within the application
              can be recognised?
              Can anyone provide some inputs as to how to recognise
              objects of the test application?

              Regards-Ron



              __________________________________
              Do you Yahoo!?
              Read only the mail you want - Yahoo! Mail SpamGuard.
              http://promotions.yahoo.com/new_mail
            • Angel Rodriguez
              Hello Hrushi, Try: use LWP::Simple; my $ans = get( http://64.116.xxx.xxx/cgi-bin/status.cgi ); then parse $ans for what you are looking for. Angel
              Message 6 of 25 , Jun 13, 2005
                Hello Hrushi,

                Try:


                use LWP::Simple;

                my $ans = get("http://64.116.xxx.xxx/cgi-bin/status.cgi");

                then parse $ans for what you are looking for.

                Angel
              • Angel Rodriguez
                Hello Hrushi, Try: use LWP::Simple; my $ans = get( http://64.116.xxx.xxx/cgi-bin/status.cgi ); then parse $ans for what you are looking for. Angel
                Message 7 of 25 , Jun 13, 2005
                  Hello Hrushi,

                  Try:


                  use LWP::Simple;

                  my $ans = get("http://64.116.xxx.xxx/cgi-bin/status.cgi");

                  then parse $ans for what you are looking for.

                  Angel
                • Gabor Szabo
                  ... You can also try Win32::IE::Mechanize Gabor
                  Message 8 of 25 , Jun 13, 2005
                    On 6/13/05, Hrushi K <ronnie13263@...> wrote:
                    > Thanks all for your valuable help-
                    > but is there some way by which web applications can be
                    > launched and various objects within the application
                    > can be recognised?

                    You can also try Win32::IE::Mechanize

                    Gabor
                  • Hrushi K
                    Hi All, I am really thankful for all the help extended by you guys.Now I have downloaded the latest version of per and also installed the package SAMIE
                    Message 9 of 25 , Jun 13, 2005
                      Hi All,
                      I am really thankful for all the help extended by you
                      guys.Now I have downloaded the latest version of per
                      and also installed the package SAMIE



                      E:\InstalledPerl>perl ClickLink.pl

                      Can't locate Win32/SAM.pm in @INC (@INC contains:
                      E:/InstalledPerl/lib E:/Instal
                      ledPerl/site/lib .) at ClickLink.pl line 3.
                      BEGIN failed--compilation aborted at ClickLink.pl line
                      3.

                      I am not sure as wht is going wrong-in fact I have the
                      perl installation in the same directory-and also
                      installed the samie module in the same directory-

                      Can anybody help please?

                      Regards-ron



                      __________________________________
                      Discover Yahoo!
                      Use Yahoo! to plan a weekend, have fun online and more. Check it out!
                      http://discover.yahoo.com/
                    • pkaluski
                      Guys, Many forums and mailing lists are plaqued by would-be specialists, who build their professional image by telling people off for asking simple questions.
                      Message 10 of 25 , Jun 13, 2005
                        Guys,
                        Many forums and mailing lists are plaqued by would-be specialists,
                        who build their professional image by telling people off for asking
                        simple questions.
                        So far, this group, did not observe this kind of behavior, mainly
                        thanks to Dennis and Gabor. I really admire their patience.
                        But please, do not abuse it.
                        Hrushi,
                        I can imagine that your problem is really important for you. But you
                        are asking really basic questions related to perl. What is worse,
                        some of them were answered in this group (how to install
                        win32::guitest).

                        So before you guys, ask a question please do the following:
                        1. Do a search in this group. There are some questions which were
                        already answered.

                        2. If you are in a rush (it happens in our profession) and YOU HAVE
                        PERFORMED STEP 1, ask your question. But when you ask your question,
                        provide as much information as you can. Don't force us to guess what
                        was your intention, or what could be the code.
                        If I look below I have numerous questions:
                        * What is SAMIE?
                        * What is ClickLink.pl?
                        * How was SAMIE installed?
                        * How is it used in ClickLink.pl?

                        All this information should be included.

                        3. If you are not in a rush (please be honest here, we always have
                        some time) please spend some time reading the documentation.
                        ActiveState provides some comprehensive documentation on installation
                        and on perl itself. You can also check Win32::GuiTest documentation,
                        which is included in the links section of this group.

                        Please do not stop asking questions. But please make some effort in
                        finding an answer in old posts. There are not so many of them, and
                        some of them contain really good examples.
                        And if you do send a question help us to help you.

                        Nothing personal :)

                        -Piotr


                        --- In perlguitest@yahoogroups.com, Hrushi K <ronnie13263@y...> wrote:
                        > Hi All,
                        > I am really thankful for all the help extended by you
                        > guys.Now I have downloaded the latest version of per
                        > and also installed the package SAMIE
                        >
                        >
                        >
                        > E:\InstalledPerl>perl ClickLink.pl
                        >
                        > Can't locate Win32/SAM.pm in @INC (@INC contains:
                        > E:/InstalledPerl/lib E:/Instal
                        > ledPerl/site/lib .) at ClickLink.pl line 3.
                        > BEGIN failed--compilation aborted at ClickLink.pl line
                        > 3.
                        >
                        > I am not sure as wht is going wrong-in fact I have the
                        > perl installation in the same directory-and also
                        > installed the samie module in the same directory-
                        >
                        > Can anybody help please?
                        >
                        > Regards-ron
                        >
                        >
                        >
                        > __________________________________
                        > Discover Yahoo!
                        > Use Yahoo! to plan a weekend, have fun online and more. Check it
                        out!
                        > http://discover.yahoo.com/
                      • Hrushi K
                        Hi All, I am really sorry for causing trouble.but yes i do admint that i am a new user to perl automation-earlier I worked on rational and was pretty confident
                        Message 11 of 25 , Jun 14, 2005
                          Hi All,
                          I am really sorry for causing trouble.but yes i do
                          admint that i am a new user to perl automation-earlier
                          I worked on rational and was pretty confident with
                          it.but yes i am realy sorry for bothering all you guys
                          for simple questions[Simple for you-but not for
                          me-thts the tragedy]
                          Anyways-Samie is a module for testing IE
                          applications.I too discovered it recently,it has a
                          list of inbuilt functions for recognisition of objects
                          Now here is the piece of code.

                          #usr/bin/perl
                          use Win32::OLE;
                          use Win32::SAM;
                          #use Win32::Slingshot;

                          $| = 1;
                          my $URL =
                          "http://samie.sourceforge.net/ClickLinkTest.html";
                          my $seconds;

                          $Win32::OLE::Warn = 3;

                          StartIE();
                          $seconds = Navigate($URL);
                          print "Checkbox.html page took $seconds seconds to
                          load\n";
                          $seconds = ClickLink("test link below");
                          print "testlink.html took $seconds seconds to load\n";


                          I receive the following error on running this -

                          Can't locate Win32/SAM.pm in @INC (@INC contains:
                          E:/InstalledPerl/lib E:/Instal
                          ledPerl/site/lib .) at ClickLink.pl line 3.
                          BEGIN failed--compilation aborted at ClickLink.pl line
                          3.

                          Thankful as always-

                          regards-Ron



                          __________________________________
                          Discover Yahoo!
                          Use Yahoo! to plan a weekend, have fun online and more. Check it out!
                          http://discover.yahoo.com/
                        • Chris Hilton
                          The error indicates that the module Win32::SAM is not installed; at least, not where Perl looks for it. You would have to ask the SAMIE folks why that is.
                          Message 12 of 25 , Jun 14, 2005
                            The error indicates that the module Win32::SAM is not installed; at
                            least, not where Perl looks for it. You would have to ask the SAMIE
                            folks why that is.

                            Chris Hilton

                            > -----Original Message-----
                            > From: perlguitest@yahoogroups.com
                            > [mailto:perlguitest@yahoogroups.com] On Behalf Of Hrushi K
                            > Sent: Tuesday, 14 June, 2005 02:18
                            > To: perlguitest@yahoogroups.com
                            > Subject: [perlguitest] Sorry to ask simple questions-
                            >
                            > Hi All,
                            > I am really sorry for causing trouble.but yes i do admint
                            > that i am a new user to perl automation-earlier I worked on
                            > rational and was pretty confident with it.but yes i am realy
                            > sorry for bothering all you guys for simple questions[Simple
                            > for you-but not for me-thts the tragedy] Anyways-Samie is a
                            > module for testing IE applications.I too discovered it
                            > recently,it has a list of inbuilt functions for recognisition
                            > of objects Now here is the piece of code.
                            >
                            > #usr/bin/perl
                            > use Win32::OLE;
                            > use Win32::SAM;
                            > #use Win32::Slingshot;
                            >
                            > $| = 1;
                            > my $URL =
                            > "http://samie.sourceforge.net/ClickLinkTest.html";
                            > my $seconds;
                            >
                            > $Win32::OLE::Warn = 3;
                            >
                            > StartIE();
                            > $seconds = Navigate($URL);
                            > print "Checkbox.html page took $seconds seconds to load\n";
                            > $seconds = ClickLink("test link below"); print "testlink.html
                            > took $seconds seconds to load\n";
                            >
                            >
                            > I receive the following error on running this -
                            >
                            > Can't locate Win32/SAM.pm in @INC (@INC contains:
                            > E:/InstalledPerl/lib E:/Instal
                            > ledPerl/site/lib .) at ClickLink.pl line 3.
                            > BEGIN failed--compilation aborted at ClickLink.pl line 3.
                            >
                            > Thankful as always-
                            >
                            > regards-Ron
                            >
                            >
                            >
                            > __________________________________
                            > Discover Yahoo!
                            > Use Yahoo! to plan a weekend, have fun online and more. Check it out!
                            > http://discover.yahoo.com/
                            >
                            >
                            >
                            >
                            >
                            > Yahoo! Groups Links
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                          • saud aziz
                            I would back off and install perl in its default location (Activeperl that is) and samie too in its default location (C: Program Files Premium Quality
                            Message 13 of 25 , Jun 14, 2005
                              I would back off and install perl in its default location (Activeperl that
                              is) and samie too in its default location (C:\Program Files\Premium Quality
                              Inc\samie). But i believe it is simply issue with where you have installed
                              Perl at, and it is trying to reference it at its default location.

                              On 6/14/05, Hrushi K <ronnie13263@...> wrote:
                              >
                              > Hi All,
                              > I am really sorry for causing trouble.but yes i do
                              > admint that i am a new user to perl automation-earlier
                              > I worked on rational and was pretty confident with
                              > it.but yes i am realy sorry for bothering all you guys
                              > for simple questions[Simple for you-but not for
                              > me-thts the tragedy]
                              > Anyways-Samie is a module for testing IE
                              > applications.I too discovered it recently,it has a
                              > list of inbuilt functions for recognisition of objects
                              > Now here is the piece of code.
                              >
                              > #usr/bin/perl
                              > use Win32::OLE;
                              > use Win32::SAM;
                              > #use Win32::Slingshot;
                              >
                              > $| = 1;
                              > my $URL =
                              > "http://samie.sourceforge.net/ClickLinkTest.html";
                              > my $seconds;
                              >
                              > $Win32::OLE::Warn = 3;
                              >
                              > StartIE();
                              > $seconds = Navigate($URL);
                              > print "Checkbox.html page took $seconds seconds to
                              > load\n";
                              > $seconds = ClickLink("test link below");
                              > print "testlink.html took $seconds seconds to load\n";
                              >
                              >
                              > I receive the following error on running this -
                              >
                              > Can't locate Win32/SAM.pm in @INC (@INC contains:
                              > E:/InstalledPerl/lib E:/Instal
                              > ledPerl/site/lib .) at ClickLink.pl line 3.
                              > BEGIN failed--compilation aborted at ClickLink.pl line
                              > 3.
                              >
                              > Thankful as always-
                              >
                              > regards-Ron
                              >
                              >
                              >
                              > __________________________________
                              > Discover Yahoo!
                              > Use Yahoo! to plan a weekend, have fun online and more. Check it out!
                              > http://discover.yahoo.com/
                              >
                              >
                              >
                              > ------------------------------
                              > *Yahoo! Groups Links*
                              >
                              > - To visit your group on the web, go to:
                              > http://groups.yahoo.com/group/perlguitest/
                              > - To unsubscribe from this group, send an email to:
                              > perlguitest-unsubscribe@yahoogroups.com<perlguitest-unsubscribe@yahoogroups.com?subject=Unsubscribe>
                              > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
                              > Service <http://docs.yahoo.com/info/terms/>.
                              >
                              >


                              --
                              If you develop an ear for sounds that are musical it is like developing an
                              ego. You begin to refuse sounds that are not musical and that way cut
                              yourself off from a good deal of experience. -John Cage


                              [Non-text portions of this message have been removed]
                            • saud aziz
                              Is this Almost the same error you are getting as specified on: http://sourceforge.net/forum/forum.php?thread_id=888972&forum_id=209723 answer is there.. ... --
                              Message 14 of 25 , Jun 14, 2005
                                Is this Almost the same error you are getting as specified on:

                                http://sourceforge.net/forum/forum.php?thread_id=888972&forum_id=209723

                                answer is there..



                                On 6/14/05, saud aziz <saudaziz@...> wrote:
                                >
                                > I would back off and install perl in its default location (Activeperl that
                                > is) and samie too in its default location (C:\Program Files\Premium Quality
                                > Inc\samie). But i believe it is simply issue with where you have installed
                                > Perl at, and it is trying to reference it at its default location.
                                >
                                > On 6/14/05, Hrushi K <ronnie13263@...> wrote:
                                > >
                                > > Hi All,
                                > > I am really sorry for causing trouble.but yes i do
                                > > admint that i am a new user to perl automation-earlier
                                > > I worked on rational and was pretty confident with
                                > > it.but yes i am realy sorry for bothering all you guys
                                > > for simple questions[Simple for you-but not for
                                > > me-thts the tragedy]
                                > > Anyways-Samie is a module for testing IE
                                > > applications.I too discovered it recently,it has a
                                > > list of inbuilt functions for recognisition of objects
                                > > Now here is the piece of code.
                                > >
                                > > #usr/bin/perl
                                > > use Win32::OLE;
                                > > use Win32::SAM;
                                > > #use Win32::Slingshot;
                                > >
                                > > $| = 1;
                                > > my $URL =
                                > > "http://samie.sourceforge.net/ClickLinkTest.html";
                                > > my $seconds;
                                > >
                                > > $Win32::OLE::Warn = 3;
                                > >
                                > > StartIE();
                                > > $seconds = Navigate($URL);
                                > > print "Checkbox.html page took $seconds seconds to
                                > > load\n";
                                > > $seconds = ClickLink("test link below");
                                > > print "testlink.html took $seconds seconds to load\n";
                                > >
                                > >
                                > > I receive the following error on running this -
                                > >
                                > > Can't locate Win32/SAM.pm in @INC (@INC contains:
                                > > E:/InstalledPerl/lib E:/Instal
                                > > ledPerl/site/lib .) at ClickLink.pl line 3.
                                > > BEGIN failed--compilation aborted at ClickLink.pl line
                                > > 3.
                                > >
                                > > Thankful as always-
                                > >
                                > > regards-Ron
                                > >
                                > >
                                > >
                                > > __________________________________
                                > > Discover Yahoo!
                                > > Use Yahoo! to plan a weekend, have fun online and more. Check it out!
                                > > http://discover.yahoo.com/
                                > >
                                > >
                                > >
                                > > ------------------------------
                                > > *Yahoo! Groups Links*
                                > >
                                > > - To visit your group on the web, go to:
                                > > http://groups.yahoo.com/group/perlguitest/
                                > > - To unsubscribe from this group, send an email to:
                                > > perlguitest-unsubscribe@yahoogroups.com
                                > > <perlguitest-unsubscribe@yahoogroups.com?subject=Unsubscribe>
                                > > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
                                > > Service <http://docs.yahoo.com/info/terms/>.
                                > >
                                > >
                                >
                                >
                                > --
                                > If you develop an ear for sounds that are musical it is like developing an
                                > ego. You begin to refuse sounds that are not musical and that way cut
                                > yourself off from a good deal of experience. -John Cage
                                >
                                >


                                --
                                If you develop an ear for sounds that are musical it is like developing an
                                ego. You begin to refuse sounds that are not musical and that way cut
                                yourself off from a good deal of experience. -John Cage


                                [Non-text portions of this message have been removed]
                              • Hrushi K
                                -Samie is a module for testing IE applications.I too discovered it recently,it has a list of inbuilt functions for recognisition of objects and performing
                                Message 15 of 25 , Jun 14, 2005
                                  -Samie is a module for testing IE
                                  applications.I too discovered it recently,it has
                                  a list of inbuilt functions for recognisition of
                                  objects and performing accordingly .
                                  Now here is the piece of code.
                                  #usr/bin/perl
                                  use Win32::OLE;
                                  use Win32::SAM;
                                  #use Win32::Slingshot;

                                  $| = 1;
                                  my $URL =
                                  "http://samie.sourceforge.net/ClickLinkTest.html";
                                  my $seconds;
                                  $Win32::OLE::Warn = 3;
                                  StartIE();
                                  $seconds = Navigate($URL);
                                  print "Checkbox.html page took $seconds seconds
                                  to load\n";
                                  $myseconds->ClickLink("test link below"); print
                                  "testlink.html took $myseconds seconds to
                                  load\n";
                                  I receive the following error on running this -

                                  Can't call method "ClickLink" without a package or
                                  object reference
                                  at ClickLink.pl line 15.





                                  __________________________________
                                  Discover Yahoo!
                                  Stay in touch with email, IM, photo sharing and more. Check it out!
                                  http://discover.yahoo.com/stayintouch.html
                                • saud aziz
                                  $myseconds- ClickLink( test link below ); is wrong, i believe, try just: ClickLink( test link below ); or $seconds = ClickLink( test link below ); ... -- If
                                  Message 16 of 25 , Jun 15, 2005
                                    $myseconds->ClickLink("test link below");

                                    is wrong, i believe, try just:

                                    ClickLink("test link below");

                                    or

                                    $seconds = ClickLink("test link below");


                                    On 6/14/05, Hrushi K <ronnie13263@...> wrote:
                                    >
                                    >
                                    >
                                    > -Samie is a module for testing IE
                                    > applications.I too discovered it recently,it has
                                    > a list of inbuilt functions for recognisition of
                                    > objects and performing accordingly .
                                    > Now here is the piece of code.
                                    > #usr/bin/perl
                                    > use Win32::OLE;
                                    > use Win32::SAM;
                                    > #use Win32::Slingshot;
                                    >
                                    > $| = 1;
                                    > my $URL =
                                    > "http://samie.sourceforge.net/ClickLinkTest.html";
                                    > my $seconds;
                                    > $Win32::OLE::Warn = 3;
                                    > StartIE();
                                    > $seconds = Navigate($URL);
                                    > print "Checkbox.html page took $seconds seconds
                                    > to load\n";
                                    > $myseconds->ClickLink("test link below"); print
                                    > "testlink.html took $myseconds seconds to
                                    > load\n";
                                    > I receive the following error on running this -
                                    >
                                    > Can't call method "ClickLink" without a package or
                                    > object reference
                                    > at ClickLink.pl line 15.
                                    >
                                    >
                                    >
                                    >
                                    >
                                    > __________________________________
                                    > Discover Yahoo!
                                    > Stay in touch with email, IM, photo sharing and more. Check it out!
                                    > http://discover.yahoo.com/stayintouch.html
                                    >
                                    >
                                    >
                                    >
                                    > ------------------------------
                                    > *Yahoo! Groups Links*
                                    >
                                    > - To visit your group on the web, go to:
                                    > http://groups.yahoo.com/group/perlguitest/
                                    > - To unsubscribe from this group, send an email to:
                                    > perlguitest-unsubscribe@yahoogroups.com<perlguitest-unsubscribe@yahoogroups.com?subject=Unsubscribe>
                                    > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
                                    > Service <http://docs.yahoo.com/info/terms/>.
                                    >
                                    >


                                    --
                                    If you develop an ear for sounds that are musical it is like developing an
                                    ego. You begin to refuse sounds that are not musical and that way cut
                                    yourself off from a good deal of experience. -John Cage


                                    [Non-text portions of this message have been removed]
                                  • lmarlin
                                    To Hrushi K: I just tested this script in SAMIE and it did properly click on the link. I am running SAMIE 1.0. I have not tested this with SAMIE 2.0 #
                                    Message 17 of 25 , Aug 3, 2005
                                      To Hrushi K:

                                      I just tested this script in SAMIE and it did properly click on the
                                      link.
                                      I am running SAMIE 1.0.
                                      I have not tested this with SAMIE 2.0

                                      # ============================================

                                      use Win32::OLE;
                                      use Win32::SAM;

                                      $| = 1;
                                      my $URL = "http://samie.sourceforge.net/ClickLinkTest.html";
                                      my $IEDocument;
                                      my $seconds;

                                      $Win32::OLE::Warn = 3;

                                      StartIE();
                                      Navigate($URL);
                                      ## Wait until IE is ready:#
                                      WaitForBusy();
                                      #print IE is now ready to get frames
                                      $IEDocument = GetDocument();
                                      $seconds = WaitForDocumentComplete();
                                      print "Checkbox.html page took $seconds seconds to load\n";
                                      ClickLink("test link below");
                                      $seconds = WaitForDocumentComplete();
                                      print "testlink.html took $seconds seconds to load\n";


                                      Could it be an install problem?

                                      Lee
                                      # ===========================================
                                      When the height is won, then there is ease - Aeschylus



                                      --- In perlguitest@yahoogroups.com, Hrushi K <ronnie13263@y...>
                                      wrote:
                                      >
                                      >
                                      > -Samie is a module for testing IE
                                      > applications.I too discovered it recently,it has
                                      > a list of inbuilt functions for recognisition of
                                      > objects and performing accordingly .
                                      > Now here is the piece of code.
                                      > #usr/bin/perl
                                      > use Win32::OLE;
                                      > use Win32::SAM;
                                      > #use Win32::Slingshot;
                                      >
                                      > $| = 1;
                                      > my $URL =
                                      > "http://samie.sourceforge.net/ClickLinkTest.html";
                                      > my $seconds;
                                      > $Win32::OLE::Warn = 3;
                                      > StartIE();
                                      > $seconds = Navigate($URL);
                                      > print "Checkbox.html page took $seconds seconds
                                      > to load\n";
                                      > $myseconds->ClickLink("test link below"); print
                                      > "testlink.html took $myseconds seconds to
                                      > load\n";
                                      > I receive the following error on running this -
                                      >
                                      > Can't call method "ClickLink" without a package or
                                      > object reference
                                      > at ClickLink.pl line 15.
                                      >
                                      >
                                      >
                                      >
                                      >
                                      > __________________________________
                                      > Discover Yahoo!
                                      > Stay in touch with email, IM, photo sharing and more. Check it
                                      out!
                                      > http://discover.yahoo.com/stayintouch.html
                                    • Dennis K. Paulsen
                                      In the future, please direct these SAMIE related questions to the appropriate public forums at: http://sourceforge.net/projects/samie Regards. ... the
                                      Message 18 of 25 , Aug 3, 2005
                                        In the future, please direct these SAMIE related questions to the
                                        appropriate public forums at: http://sourceforge.net/projects/samie


                                        Regards.
                                        --- In perlguitest@yahoogroups.com, "lmarlin" <lmarlin@y...> wrote:
                                        > To Hrushi K:
                                        >
                                        > I just tested this script in SAMIE and it did properly click on
                                        the
                                        > link.
                                        > I am running SAMIE 1.0.
                                        > I have not tested this with SAMIE 2.0
                                        >
                                        > # ============================================
                                        >
                                        > use Win32::OLE;
                                        > use Win32::SAM;
                                        >
                                        > $| = 1;
                                        > my $URL = "http://samie.sourceforge.net/ClickLinkTest.html";
                                        > my $IEDocument;
                                        > my $seconds;
                                        >
                                        > $Win32::OLE::Warn = 3;
                                        >
                                        > StartIE();
                                        > Navigate($URL);
                                        > ## Wait until IE is ready:#
                                        > WaitForBusy();
                                        > #print IE is now ready to get frames
                                        > $IEDocument = GetDocument();
                                        > $seconds = WaitForDocumentComplete();
                                        > print "Checkbox.html page took $seconds seconds to load\n";
                                        > ClickLink("test link below");
                                        > $seconds = WaitForDocumentComplete();
                                        > print "testlink.html took $seconds seconds to load\n";
                                        >
                                        >
                                        > Could it be an install problem?
                                        >
                                        > Lee
                                        > # ===========================================
                                        > When the height is won, then there is ease - Aeschylus
                                        >
                                        >
                                        >
                                        > --- In perlguitest@yahoogroups.com, Hrushi K <ronnie13263@y...>
                                        > wrote:
                                        > >
                                        > >
                                        > > -Samie is a module for testing IE
                                        > > applications.I too discovered it recently,it has
                                        > > a list of inbuilt functions for recognisition of
                                        > > objects and performing accordingly .
                                        > > Now here is the piece of code.
                                        > > #usr/bin/perl
                                        > > use Win32::OLE;
                                        > > use Win32::SAM;
                                        > > #use Win32::Slingshot;
                                        > >
                                        > > $| = 1;
                                        > > my $URL =
                                        > > "http://samie.sourceforge.net/ClickLinkTest.html";
                                        > > my $seconds;
                                        > > $Win32::OLE::Warn = 3;
                                        > > StartIE();
                                        > > $seconds = Navigate($URL);
                                        > > print "Checkbox.html page took $seconds seconds
                                        > > to load\n";
                                        > > $myseconds->ClickLink("test link below"); print
                                        > > "testlink.html took $myseconds seconds to
                                        > > load\n";
                                        > > I receive the following error on running this -
                                        > >
                                        > > Can't call method "ClickLink" without a package or
                                        > > object reference
                                        > > at ClickLink.pl line 15.
                                        > >
                                        > >
                                        > >
                                        > >
                                        > >
                                        > > __________________________________
                                        > > Discover Yahoo!
                                        > > Stay in touch with email, IM, photo sharing and more. Check it
                                        > out!
                                        > > http://discover.yahoo.com/stayintouch.html
                                      • Lee Marlin
                                        No problem Dennis K. Paulsen wrote:In the future, please direct these SAMIE related questions to the appropriate public forums
                                        Message 19 of 25 , Aug 3, 2005
                                          No problem

                                          "Dennis K. Paulsen" <ctrondlpaulsden@...> wrote:In the future, please direct these SAMIE related questions to the
                                          appropriate public forums at: http://sourceforge.net/projects/samie


                                          Regards.
                                          --- In perlguitest@yahoogroups.com, "lmarlin" <lmarlin@y...> wrote:
                                          > To Hrushi K:
                                          >
                                          > I just tested this script in SAMIE and it did properly click on
                                          the
                                          > link.
                                          > I am running SAMIE 1.0.
                                          > I have not tested this with SAMIE 2.0
                                          >
                                          > # ============================================
                                          >
                                          > use Win32::OLE;
                                          > use Win32::SAM;
                                          >
                                          > $| = 1;
                                          > my $URL = "http://samie.sourceforge.net/ClickLinkTest.html";
                                          > my $IEDocument;
                                          > my $seconds;
                                          >
                                          > $Win32::OLE::Warn = 3;
                                          >
                                          > StartIE();
                                          > Navigate($URL);
                                          > ## Wait until IE is ready:#
                                          > WaitForBusy();
                                          > #print IE is now ready to get frames
                                          > $IEDocument = GetDocument();
                                          > $seconds = WaitForDocumentComplete();
                                          > print "Checkbox.html page took $seconds seconds to load\n";
                                          > ClickLink("test link below");
                                          > $seconds = WaitForDocumentComplete();
                                          > print "testlink.html took $seconds seconds to load\n";
                                          >
                                          >
                                          > Could it be an install problem?
                                          >
                                          > Lee
                                          > # ===========================================
                                          > When the height is won, then there is ease - Aeschylus
                                          >
                                          >
                                          >
                                          > --- In perlguitest@yahoogroups.com, Hrushi K <ronnie13263@y...>
                                          > wrote:
                                          > >
                                          > >
                                          > > -Samie is a module for testing IE
                                          > > applications.I too discovered it recently,it has
                                          > > a list of inbuilt functions for recognisition of
                                          > > objects and performing accordingly .
                                          > > Now here is the piece of code.
                                          > > #usr/bin/perl
                                          > > use Win32::OLE;
                                          > > use Win32::SAM;
                                          > > #use Win32::Slingshot;
                                          > >
                                          > > $| = 1;
                                          > > my $URL =
                                          > > "http://samie.sourceforge.net/ClickLinkTest.html";
                                          > > my $seconds;
                                          > > $Win32::OLE::Warn = 3;
                                          > > StartIE();
                                          > > $seconds = Navigate($URL);
                                          > > print "Checkbox.html page took $seconds seconds
                                          > > to load\n";
                                          > > $myseconds->ClickLink("test link below"); print
                                          > > "testlink.html took $myseconds seconds to
                                          > > load\n";
                                          > > I receive the following error on running this -
                                          > >
                                          > > Can't call method "ClickLink" without a package or
                                          > > object reference
                                          > > at ClickLink.pl line 15.
                                          > >
                                          > >
                                          > >
                                          > >
                                          > >
                                          > > __________________________________
                                          > > Discover Yahoo!
                                          > > Stay in touch with email, IM, photo sharing and more. Check it
                                          > out!
                                          > > http://discover.yahoo.com/stayintouch.html




                                          SPONSORED LINKS
                                          C programming language Computer programming languages The c programming language C programming language List of programming languages Programming languages

                                          ---------------------------------
                                          YAHOO! GROUPS LINKS


                                          Visit your group "perlguitest" on the web.

                                          To unsubscribe from this group, send an email to:
                                          perlguitest-unsubscribe@yahoogroups.com

                                          Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


                                          ---------------------------------




                                          __________________________________________________
                                          Do You Yahoo!?
                                          Tired of spam? Yahoo! Mail has the best spam protection around
                                          http://mail.yahoo.com

                                          [Non-text portions of this message have been removed]
                                        Your message has been successfully submitted and would be delivered to recipients shortly.