A Parser for Selenium Test Cases and Suites
Perl 6
Switch branches/tags
Nothing to show
Latest commit fc236e7 Apr 27, 2017 @azawawi committed on GitHub Rename META.info to META6.json
Failed to load latest commit information.
examples Resolve issue #1 Oct 11, 2015
lib/Parse - Convert from class { } into unit class Nov 3, 2015
logotype Add Selenium project logo Oct 19, 2015
t - Convert from class { } into unit class Nov 3, 2015
.travis.yml More tests and travis CI support Oct 7, 2015
LICENSE Initial commit Oct 6, 2015
README.md - Convert from class { } into unit class Nov 3, 2015


Parse::Selenese Build Status

This is a simple utility to parse Selenese test cases and suites that are usually generated from the Selenium IDE.


use Parse::Selenese;

my $selenese = qq{<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://some-server:3000/" />
<table cellpadding="1" cellspacing="1" border="1">
<tr><td rowspan="1" colspan="3">Login</td></tr>


my $parser = Parse::Selenese.new;
my $result = $parser.parse($selenese);
if $result {
  say "Matches with the following results: " ~ $result.ast.perl;
} else {
  say "Fails";


To install it using Panda (a module management tool bundled with Rakudo Star):

$ panda update
$ panda install Parse::Selenese


To run tests:

$ prove -e "perl6 -Ilib"


Ahmad M. Zawawi, azawawi on #perl6, https://github.com/azawawi/


Artistic License 2.0