Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perl-weasel/weasel-driver-mock
Weasel driver to simulate webpage interaction
https://github.com/perl-weasel/weasel-driver-mock
mock pageobject perl test weasel webapp
Last synced: about 2 months ago
JSON representation
Weasel driver to simulate webpage interaction
- Host: GitHub
- URL: https://github.com/perl-weasel/weasel-driver-mock
- Owner: perl-weasel
- Created: 2019-02-16T11:40:44.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-19T19:48:24.000Z (over 5 years ago)
- Last Synced: 2024-02-14T11:25:54.648Z (11 months ago)
- Topics: mock, pageobject, perl, test, weasel, webapp
- Language: Perl
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
Awesome Lists containing this project
README
# NAME
Weasel::Driver::Mock
[![Build Status](https://travis-ci.org/perl-weasel/weasel-driver-mock.svg?branch=master)](https://travis-ci.org/perl-weasel/weasel-driver-mock)
# VERSION
0.02
# SYNOPSIS
```perl
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](https://github.com/perl-weasel/weasel/)
to simulate webpage interactions for testing purposes.# INSTALLATION
```sh
# 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
[[email protected]](mailto:[email protected]).# COPYRIGHT
```
Copyright (c) 2019 Erik Huelsmann
```# LICENSE
Same as Perl