Moving embedScreenshot method into hooks to simplify sharedDriver
Simpifying sharedDriver