A Domain-Specific-Language for creating expressive and simple automation scripts for Selenium-based web-agents.
For usage and descriptions on the language itself, see the Github Wiki.
$
java -jar target/magnesium-script-<version>-launcher.jar
$
mvn clean install
$
mvn clean verify -Xlint:deprecation
$
mvn clean deploy
The basic elements of a MagnesiumScript expression are as follows:
- All expressions contain a reference to an active Selenium driver session
- Expressions may have child expressions, in which the child expression is resolved first before the parent
- All expressions must have a
parse()
function which should either throws a syntax error upon incorrect parsing or return a reference to the instance of the expression itself - All expressions must have an
execute()
function which may return anyObject
which is also nullable (i.e., the function may choose to return nothing, analogous to avoid
return)) - All expressions will have
parse()
invoked by the interpreter first, thenexecute()
second, when the interpreter intends to resolve the expression at runtime - All expressions contain a context, where variable may be declared and referenced at runtime