Fail tests on timeout and capture a screenshot of the current page
Use fail function instead of asserting false