Skip to content

perl-weasel/weasel-driver-mock

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
t
 
 
xt
 
 
 
 
 
 
 
 
 
 
 
 
 
 

NAME

Weasel::Driver::Mock

Build Status

VERSION

0.02

SYNOPSIS

  use Weasel;
  use Weasel::Session;
  use Weasel::Driver::Mock;

  my %opts = (
    states => [
       { cmd => 'get', args => [ 'http://localhost/index' ] },
       { cmd => 'find', args => [ '//div[@id="your-id"]' ] },
    ],
  );
  my $weasel = Weasel->new(
       default_session => 'default',
       sessions => {
          default => Weasel::Session->new(
            driver => Weasel::Driver::Mock->new(%opts),
          ),
       });

  $weasel->session->get('http://localhost/index');

DESCRIPTION

This module implements the Weasel::DriverRole API for Weasel to simulate webpage interactions for testing purposes.

INSTALLATION

  # Install Weasel::Driver::Mock
  $ cpanm Weasel::Driver::Mock

SUPPORT

BUGS

Bugs can be filed in the GitHub issue tracker for the Weasel::Driver::Mock project: https://github.com/perl-weasel/weasel-driver-mock/issues

DISCUSSION

Community support is available through perl-weasel@googlegroups.com.

COPYRIGHT

Copyright (c)  2019  Erik Huelsmann

LICENSE

Same as Perl