Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azawawi/perl6-parse-selenese
A Parser for Selenium Test Cases and Suites
https://github.com/azawawi/perl6-parse-selenese
perl selenese selenium
Last synced: 25 days ago
JSON representation
A Parser for Selenium Test Cases and Suites
- Host: GitHub
- URL: https://github.com/azawawi/perl6-parse-selenese
- Owner: azawawi
- License: artistic-2.0
- Created: 2015-10-06T13:49:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-04T12:13:15.000Z (over 6 years ago)
- Last Synced: 2024-11-19T17:57:03.098Z (3 months ago)
- Topics: perl, selenese, selenium
- Language: Perl 6
- Size: 34.2 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Parse::Selenese [![Build Status](https://travis-ci.org/azawawi/perl6-parse-selenese.svg?branch=master)](https://travis-ci.org/azawawi/perl6-parse-selenese)
This is a simple utility to parse Selenese test cases and suites that are
usually generated from the Selenium IDE.## Example
```Perl6
use Parse::Selenese;my $selenese = qq{
Login
Login
open
/login
type
name=username
admintype
name=password
123clickAndWait
//button[@type='submit']
verifyTitle
regex:Home
};
my $parser = Parse::Selenese.new;
my $result = $parser.parse($selenese);
if $result {
say "Matches with the following results: " ~ $result.ast.perl;
} else {
say "Fails";
}
```## Installation
To install it using Panda (a module management tool bundled with Rakudo Star):
```
$ panda update
$ panda install Parse::Selenese
```## Testing
To run tests:
```
$ prove -e "perl6 -Ilib"
```## Author
Ahmad M. Zawawi, azawawi on #perl6, https://github.com/azawawi/
## License
Artistic License 2.0