Jon Hermansen > WWW-Selenium-NetworkCapture-0.01 > WWW::Selenium::NetworkCapture

Download:
WWW-Selenium-NetworkCapture-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

WWW::Selenium::NetworkCapture - capture and report request data from Selenium / Firefox

VERSION ^

Version 1.58

SYNOPSIS use WWW::Selenium; use WWW::Selenium::NetworkCapture; ^

    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);

FUNCTIONS ^

All functions listed below are exported to the calling namespace.

new($xml_blob)

Creates and returns a new instance of this class.

get_content_size()

Returns the sum in bytes of all content received since the start of the session.

get_num_requests()

Returns the total number of requests made since the start of the session.

get_http_status_codes()

Returns the total number of requests made since the start of the session.

get_http_details()

Returns the HTTP details of requests made since the start of the session.

get_file_extension_stats()

Returns the file extension statistics of each request made during the session

get_network_times()

Returns ($start_first_request, $end_first_request, $end_last_request);

TO DO Needs serious cleanup! ^

BUGS Probably lots. ^

COPYRIGHT Same as Perl. ^

AUTHORS Jon Hermansen <jherm@cpan.org> ^

syntax highlighting: