WWW::Selenium::NetworkCapture - capture and report request data from Selenium / Firefox
Version 1.58
my $sel = WWW::Selenium->new(); $sel->{session_id} = $sel->get_string( "getNewBrowserSession", $sel->{browser_start_command}, $sel->{browser_url}, undef, 'captureNetworkTraffic=true' ); $sel->open($path); my $traffic_xml = $sel->get_string('captureNetworkTraffic', 'xml'); my $netcap = WWW::Selenium::NetworkCapture->new($traffic_xml);
All functions listed below are exported to the calling namespace.
Creates and returns a new instance of this class.
Returns the sum in bytes of all content received since the start of the session.
Returns the total number of requests made since the start of the session.
Returns the HTTP details of requests made since the start of the session.
Returns the file extension statistics of each request made during the session
Returns ($start_first_request, $end_first_request, $end_last_request);
To install WWW::Selenium::NetworkCapture, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Selenium::NetworkCapture
CPAN shell
perl -MCPAN -e shell install WWW::Selenium::NetworkCapture
For more information on module installation, please visit the detailed CPAN module installation guide.