Max Maischein > WWW-Mechanize-Firefox-0.73 > Firefox::Application::API36

Download:
WWW-Mechanize-Firefox-0.73.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.73   Source   Latest Release: WWW-Mechanize-Firefox-0.77

NAME ^

Firefox::Application::API36 - API wrapper for Firefox 3.6+

SYNOPSIS ^

    use Firefox::Application;
    my $ff = Firefox::Application->new(
        # Force the Firefox 3.5 API
        api => 'Firefox::Application::API35',
    );

METHODS ^

$api->updateitems( %args )

  for my $item ($api->updateitems) {
      print sprintf "Name: %s\n", $item->{name};
      print sprintf "Version: %s\n", $item->{version};
      print sprintf "GUID: %s\n", $item->{id};
  };

Returns the list of updateable items. Under Firefox 4, can be restricted by the type option.

$ff->closeTab( $tab [,$repl] )

    $ff->closeTab( $tab );

Close the given tab.

$api->element_query( \@elements, \%attributes )

    my $query = $element_query(['input', 'select', 'textarea'],
                               { name => 'foo' });

Returns the XPath query that searches for all elements with tagNames in @elements having the attributes %attributes. The @elements will form an or condition, while the attributes will form an and condition.

AUTHOR ^

Max Maischein corion@cpan.org

COPYRIGHT (c) ^

Copyright 2009-2012 by Max Maischein corion@cpan.org.

LICENSE ^

This module is released under the same terms as Perl itself.

syntax highlighting: