Selenium-Remote-Driver
Selenium-Remote-Driver copied to clipboard
Selenium::Remote::Driver doesnt work but Selenium::Firefox does
im using this module with firefox running inside this official container -> https://hub.docker.com/r/selenium/standalone-firefox
BEFORE
this used to work but doesnt anymore
use Selenium::Remote::Driver;
my $driver = Selenium::Remote::Driver->new(
remote_server_addr => 'epplication-selenium',
port => 4444,
);
$driver->get('http://www.metacpan.org');
print $driver->get_title();
AFTER
after updating the container im getting the following error message
Could not create new session: Server returned error message read timeout at /home/epplication/EPPlication/local/lib/perl5/Net/HTTP/Methods.pm line 274.
instead of data at lib/sel.pl line 7.
However, if I use Selenium::Firefox instead of Selenium::Remote::Driver, like so
use Selenium::Firefox;
my $driver = Selenium::Firefox->new(
remote_server_addr => 'epplication-selenium',
port => 4444,
);
$driver->get('http://www.metacpan.org');
print $driver->get_title();
it works and prints this output on STDOUT
Search the CPAN - metacpan.org
I didnt find information what the difference is. and also no feedback from the code that gives insight.