Skip to content

refactoror/SelBlocks

Repository files navigation

SelBlocks 2

SelBlocks is a language extension for Selenium IDE

It provides Selenium commands for javascript-like conditionals, looping, callable functions, error catching, and JSON/XML driven parameterization.

Features

  • Adds the following control structures to Selenese:
    • if, elseIf, else
    • try, catch, finally, throw
    • for, foreach, while, continue, break
    • call, function, return
    • loadJsonVars, loadXmlVars, forJson, forXml
    • exitTest
  • Function and loop parameters use regular Selenium variables that are local to the block, overriding variables of the same name, and that are restored when the block exits.
  • Command parameters are javascript expressions that are evaluated with Selenium variables in scope, which can therefore be referenced by their simple names, e.g.: i+1
  • Variables can be configured via external XML and/or JSON files.
  • A function definition can appear anywhere, (they are skipped over in normal execution flow).
  • Functions can be called recursively.

Firefox Installer / Documentation

Contributors

If you would like to contribute code to SelBlocks, you can do so by forking this project, and then submitting a pull request. Contributed code must be able to pass the full test suite, and should include additional tests to prove the correctness of the new or modified code.

Note that SelBlocks is a stand-alone Selenium extension. However, the SelBlocks test suite requires SelBench.

About

SelBlocks extension for Selenium IDE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published