Skip Menu |

This queue is for tickets about the WWW-Mechanize-Chrome CPAN distribution.

Report information
The Basics
Id: 127973
Status: resolved
Priority: 0/
Queue: WWW-Mechanize-Chrome

People
Owner: Nobody in particular
Requestors: tom.moreau [...] live.ca
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.36



Subject: Internal Exception
Date: Sat, 8 Dec 2018 16:50:12 +0000
To: "bug-WWW-Mechanize-Chrome [...] rt.cpan.org" <bug-WWW-Mechanize-Chrome [...] rt.cpan.org>
From: Tom Moreau <tom.moreau [...] live.ca>
I am trying to run the sendkeys.pl example script to Google: #!perl -w use strict; use Log::Log4perl qw(:easy); use WWW::Mechanize::Chrome; my $mech = WWW::Mechanize::Chrome->new(); $mech->get( 'https://google.com' ); $mech->sendkeys( string => "test\r" ); $mech->sleep( 10 ); I get: error when connectingInternal Exception at D:/Strawberry/perl/site/lib/WWW/Mechanize/Chrome.pm line 698. Running on Windows 10 with Strawberry PERL. Tom Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS Cambridge, ON Canada tom.moreau@live.ca<mailto:tom.moreau@live.ca>
Subject: Re: [rt.cpan.org #127973] Internal Exception
Date: Sun, 9 Dec 2018 18:56:00 +0100
To: bug-WWW-Mechanize-Chrome [...] rt.cpan.org
From: Max Maischein <corion [...] corion.net>
Hello Tom, Show quoted text
> I am trying to run the sendkeys.pl example script to Google:> > I get: > > error when connectingInternal Exception at D:/Strawberry/perl/site/lib/WWW/Mechanize/Chrome.pm line 698. > > Running on Windows 10 with Strawberry PERL. >
Thank you very much for the bug report. It seems that this problem does not happen when you have no instance of Google Chrome open or run a separate chrome.exe (specified via $ENV{CHROME_BIN} for example). So, as a workaround, you can maybe specify the Chrome.exe to use. But still, this shouldn't happen and WWW::Mechanize::Chrome should be able to reuse an existing/running Chrome process and connect to it. I'll have to investigate what leads to this state. -max
Subject: RE: [rt.cpan.org #127973] Internal Exception
Date: Mon, 10 Dec 2018 20:52:11 +0000
To: "bug-WWW-Mechanize-Chrome [...] rt.cpan.org" <bug-WWW-Mechanize-Chrome [...] rt.cpan.org>
From: Tom Moreau <tom.moreau [...] live.ca>
Max, Thanx for this. That worked. I have a follow-up problem. When I add the following line: print $mech->text(); ... I get the following: Node has gone away in the meantime, could not resolve at D:/Strawberry/perl/site/lib/WWW/Mechanize/Chrome.pm line 3105. Node has gone away in the meantime, could not resolve at D:/Strawberry/perl/site/lib/WWW/Mechanize/Chrome.pm line 3105. Node has gone away in the meantime, could not resolve at D:/Strawberry/perl/site/lib/WWW/Mechanize/Chrome.pm line 3105. Node has gone away in the meantime, could not resolve at D:/Strawberry/perl/site/lib/WWW/Mechanize/Chrome.pm line 3105. Node has gone away in the meantime, could not resolve at D:/Strawberry/perl/site/lib/WWW/Mechanize/Chrome.pm line 3105. Node has gone away in the meantime, could not resolve at D:/Strawberry/perl/site/lib/WWW/Mechanize/Chrome.pm line 3105. Node has gone away in the meantime, could not resolve at D:/Strawberry/perl/site/lib/WWW/Mechanize/Chrome.pm line 3105. Can't call method "_generation" on an undefined value at D:/Strawberry/perl/site/lib/WWW/Mechanize/Chrome/Node.pm line 120.      Tom     Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS Cambridge, ON Canada    tom.moreau@live.ca Show quoted text
-----Original Message----- From: Max Maischein via RT <bug-WWW-Mechanize-Chrome@rt.cpan.org> Sent: 9-Dec-18 12:56 To: tom.moreau@live.ca Subject: Re: [rt.cpan.org #127973] Internal Exception <URL: https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Frt.cpan.org%2FTicket%2FDisplay.html%3Fid%3D127973&amp;data=02%7C01%7C%7C28c654f7bfca41a6c26c08d65dffa213%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636799749842225295&amp;sdata=YWiQfEF1kMMmN7S6gfAcJhBMdmEMzAsrkDh70EKRWwk%3D&amp;reserved=0 > Hello Tom,
> I am trying to run the sendkeys.pl example script to Google:> I get: > > error when connectingInternal Exception at D:/Strawberry/perl/site/lib/WWW/Mechanize/Chrome.pm line 698. > > Running on Windows 10 with Strawberry PERL. >
Thank you very much for the bug report. It seems that this problem does not happen when you have no instance of Google Chrome open or run a separate chrome.exe (specified via $ENV{CHROME_BIN} for example). So, as a workaround, you can maybe specify the Chrome.exe to use. But still, this shouldn't happen and WWW::Mechanize::Chrome should be able to reuse an existing/running Chrome process and connect to it. I'll have to investigate what leads to this state. -max