A test framework for browser automation