Remove logo.png
article thumbnail

What Is New in Selenium 4?

Modus Create

WebElement logo= WebElement logo = driver.findElement(By.className("col-sm-12 col-md-4 fl-page-header-logo-col")); File srcFile=logo.getScreenshotAs(OutputType.FILE); File destinationFile =new File(“logo.png”); FileUtils.copyFile(file,destfile); Example : Let us get the location, coordinates, height, and width of the logo element.