Implementing mock browser capturing test helper.