@saiyan - I am still having the same doubt as you had below. Could you explain if you had understood? But ChromeDriver object is type casted to WebDriver and WebDriver does not implement TakesScreenshot. Can you explain more here? –