Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I could find no examples to use this Perl module - and there are more questions for it.#!/usr/bin/perl use strict; use warnings; use Selenium::Firefox; my $mech = Selenium::Firefox->new( startup_timeout => 20, firefox_binary => '/srv/bin/firefox.62.0/firefox', binary => '/usr/local/bin/geckodriver', marionette_enabled => 1 ); my $search = "perl"; my $url = "https://www.google.com/"; $mech->get($url); $mech->find_element_by_name("q"); sleep(3); my $lastname = $mech->get_active_element(); $lastname->send_keys($search); sleep (10); $mech->shutdown_binary; exit 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get autocomplete result with Selenium::Remote::Driver
by bliako (Abbot) on Sep 09, 2018 at 12:11 UTC |