The Galen framework allows testing page layouts using Selenium and by verifying elements' positions relative to each other. It uses .gspec files to describe layouts with objects, groups, sections and tags. Verifications include checking widths, heights, alignments, text values, and relative positions using keywords like "near", "inside" and ranges. Results can be saved to HTML reports.