NXBT-805: take screenshots when Selenium test fails on 'type' command (previous commit was actually for command 'typeKeys'