Description : Explain How to retrieve the css properties of an element?
Last Answer : The values of the css properties can be retrieved using a get() method: Syntax: driver.findElement(By.id( id )).getCssValue( name of css attribute ); driver.findElement(By.id( id )).getCssValue ... the desired location FileUtils.copyFile(scrFile, new File( C:\\CaptureScreenshot\\google.jpg )); } }