Subject: | Firefox::Marionette |
Date: | Wed, 31 Jul 2019 09:35:00 +0200 |
To: | bug-firefox-marionette [...] rt.cpan.org |
From: | kiskom [...] digikabel.hu |
Dear David,
I find module Firefox::Marionette very usefull .
I use it generally for automation of login .
Lately I found a site(#2), where the standard connection took extremly long time (96 sec).
Modifing object creation the time required for object creation become better.
Would you check the possible reasons to eliminate this effect, or give some directions in documentation.
To show the effect I am adding a simple script:
use v5.20;
use warnings;
use Firefox::Marionette;
my $uri='https://perldoc.pl'; # it takes 8 sec to create object
#2 my $uri='https://gate.gov.hu'; # it takes 96 sec to create object
say "$uri\nStarting firefox obj.creation...",scalar localtime;
my $firefox = Firefox::Marionette->new(visible=>1)->go($uri);
#3 my $firefox = Firefox::Marionette->new(visible=>1,capabilities => Firefox::Marionette::Capabilities->new( page_load_strategy => 'none' ))->go($uri);
say "Completed firefox obj.creation...",scalar localtime;
sleep 5;
$firefox->delete_session; # I get an unsolicited error message
exit;
Thank you for creating this modul !
Best regards,
Sándor Kiss