Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Chrome freezes on windows when opened with WWW::Mechanize::Chrome

by Discipulus (Canon)
on Oct 15, 2021 at 10:57 UTC ( [id://11137571]=note: print w/replies, xml ) Need Help??


in reply to Chrome freezes on windows when opened with WWW::Mechanize::Chrome

Hello bakiperl,

some time ago I was suggested to have a different browser especially installed for mechanize things, so you dont run in the problem you encountered. Chromium is a valuable choice and keep it away from your PATH

In the program then..

my $url = 'perlmonks.org'; my $chromium_path = "C:/_CHROMIUM/Chrome-bin/chrome.exe"; my $chromium_arg = "--remote-debugging-port=9222"; # dont reme +mber if needed, but useful to know :) #################################### my $mech = WWW::Mechanize::Chrome->new( mute_audio => 1, autoclose => 0, incognito => 0, launch_exe => $chromium_path, ); $mech->get( $url );

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Chrome freezes on windows when opened with WWW::Mechanize::Chrome
by stevieb (Canon) on Oct 15, 2021 at 13:51 UTC
    my $chromium_arg = "--remote-debugging-port=9222"; # dont remember if needed, but useful to know :)

    Letting you know... it isn't needed. The setup works fine by default without that added argument.

    I just installed the distribution, and I'm so thankful I saw your post first as I'm grateful I don't need to actually install a Google product. Chromium works perfectly!

      Stevieb,
      I took your advice and I switched to Chromium to avoid the annoying google chrome auto-update.
      FYI, Chromium version 94.0... has also caused the freezing of the browser. So I am going to hold on to version 93.0. for now.
      Thank you.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2024-04-24 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found