Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Hello,
I installed WWW::Mechanize::Chrome on Windows with Strawberry Perl. Just for your information, I had to force installation of Log::Log4perl as already discussed here.
According to the author the method saveResources_future is a rough prototype. However for my purpose it is already working fine. But I can't get the method to save the files in the intended directory which I pass to the method via target_dir option. The files are always saved in the current working directory. The target_file option works well. Is this my fault or because the method is still a prototype? I would just like to save the files somewehere else no matter where the target_file is stored and what their relation is to the target_file.

Another problem I faced is that the tab=>'current' option is not working. If Chrome is still open then I get the error message 'error when connectingInternal Exception' at line 993 in Chrome.pm. I just realized that when using $mech->get there seem to be started two instances of Chrome at once. One with 'about:blank' and the other with the desired page. If I have Chrome already open before start of WWW::Mechanize::Firefox then those 'about:blank' pages are added to the first instance. tab=>'current' might not work because it might refer to the second instance. And at the end WWW:Mechanize:Chrome tries to close the first instance but is not successful when there are more tabs already open. Then there seems to be the error message 'Couldn't kill browser child 4360 with SIGKILL: Invalid argument' at line 1740 in Chrome.pm.
Best regards
1nelly1


In reply to saveResources_future and tab in WWW::Mechanize::Chrome by 1nelly1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others about the Monastery: (4)
    As of 2020-12-05 02:09 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      How often do you use taint mode?





      Results (63 votes). Check out past polls.

      Notices?