Added takeScreenshot for js api
Added testInstance to testInfo