On Tuesday 04 September 2012 13:40:33 Shlomi Fish wrote: > You're missing strict and warnings:
I copied this straight from the demo page and didn't embelish on it. I would normally include these. > > This is wrong (even though it is taken from > https://metacpan.org/module/Win32::Watir 's synopsis. It should be: > > my $ie = Win32::Watir->new( > visible => 1, > maximize =>1 > ); > Thanks for this. I even thought that it had to have something to do with this as the first line of the method is a shift, but I still didn't see it. > Regards, > > Shlomi Fish > I still have a problem, and it seems to be the install of Watir that didn't work. Below is the session. Does anyone know what I need to do to get this sorted? C:\Documents and Settings\user1\My Documents>perl watir_test.pl [3408]: DEBUG: _find_autoitx_dll: C:/strawberry/perl/site/lib/Win32/Watir/AutoIt X3.dll Undefined subroutine &Win32::MSgBox called at C:/strawberry/perl/site/lib/Win32/ Watir.pm line 1370. C:\Documents and Settings\user1\My Documents>perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.9800) Enter 'h' for help. cpan> install Win32::Watir Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.details.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/03modlist.data.gz Database was generated on Mon, 03 Sep 2012 16:03:10 GMT Updating database file ... Done!Win32::Watir is up to date (0.06). cpan> force install Win32::Watir Running install for module 'Win32::Watir' Running make for S/SH/SHIMI/Win32-Watir-0.06-withoutworldwriteables.tar.gz Checksum for C: \strawberry\cpan\sources\authors\id\S\SH\SHIMI\Win32-Watir-0.06-w ithoutworldwriteables.tar.gz ok Scanning cache C:\strawberry\cpan\build for sizes ..........................................................................--DONE DEL(1/2): C:\strawberry\cpan\build\Win32-Watir-0.06-GsiIVi DEL(2/2): C:\strawberry\cpan\build\Win32-Watir-0.06-GsiIVi.yml CPAN.pm: Building S/SH/SHIMI/Win32-Watir-0.06-withoutworldwriteables.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Win32::Watir Writing MYMETA.yml and MYMETA.json cp lib/Win32/Watir/AutoItX3_x64.dll blib\lib\Win32\Watir\AutoItX3_x64.dll cp lib/Win32/Watir/Element.pm blib\lib\Win32\Watir\Element.pm cp lib/Win32/Watir/AutoItX3.dll blib\lib\Win32\Watir\AutoItX3.dll cp lib/Win32/Watir.pm blib\lib\Win32\Watir.pm cp lib/Win32/Watir/AutoItX.chm blib\lib\Win32\Watir\AutoItX.chm cp lib/Win32/Watir/Table.pm blib\lib\Win32\Watir\Table.pm SHIMI/Win32-Watir-0.06-withoutworldwriteables.tar.gz C:\strawberry\c\bin\dmake.EXE -- OK Running make test C: \strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/01.IE_default.t .. 1/? DEBUG: _check_os_name(): WinXP/.Net Undefined subroutine &Win32::MSgBox called at C: \strawberry\cpan\build\Win32-Wat ir-0.06-hgbf6F\blib\lib/Win32/Watir.pm line 1370. # Looks like your test exited with 255 just after 1. t/01.IE_default.t .. Dubious, test returned 255 (wstat 65280, 0xff00) All 1 subtests passed Test Summary Report ------------------- t/01.IE_default.t (Wstat: 65280 Tests: 1 Failed: 0) Non-zero exit status: 255 Files=1, Tests=1, 3 wallclock secs ( 0.16 usr + 0.06 sys = 0.22 CPU) Result: FAIL Failed 1/1 test programs. 0/1 subtests failed. dmake.EXE: Error code 255, while making 'test_dynamic' SHIMI/Win32-Watir-0.06-withoutworldwriteables.tar.gz C:\strawberry\c\bin\dmake.EXE test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports SHIMI/Win32-Watir-0.06-withoutworldwriteables.tar.gz Running make install Appending installation info to C:\strawberry\perl\lib/perllocal.pod SHIMI/Win32-Watir-0.06-withoutworldwriteables.tar.gz C:\strawberry\c\bin\dmake.EXE install UNINST=1 -- OK cpan> -- Gary Stainburn Group I.T. Manager Ringways Garages http://www.ringways.co.uk -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/