Galen Framework


Galen Framework is an open source layout and functional testing framework for websites, written in Java, which allows testing the look and feel of responsive websites. It has its own special language [|Galen Specs] for describing the positioning and alignment of elements on a Web page. It is based on Selenium and could be executed via Selenium Grid for cross-browser testing

Main features

Galen Specs Language

Galen Specs language consists of the following entities:
  • Page object locator definitions
  • Tagged sections
  • Test objects
  • Test specs

  1. Declaring objects
@objects
header id header
icon css img.icon
text xpath //h1
  1. Declaring a section
= Header =
@on *
header:
inside screen 0px top left right
height ~ 70px
header.icon:
width 34px
height 34px
centered vertically inside header
inside header 7 to 10px left
@on desktop
header.text:
centered vertically inside header
right of header.icon 5 to 15px
@on mobile
header.text:
absent