Add utility function that collects info about action from page.
Take screenshot if selenium test fails.