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.
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- 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
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||