Added screenshot function: application.takeScreenshot('yeri@example.com'); will send an email to yeri with the screenshot