Programmable browser for functional black-box tests