public class CaptureImgUtil extends Object
| 构造器和说明 |
|---|
CaptureImgUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static File |
captureElement(byte[] bytes,
org.openqa.selenium.Rectangle rectangle) |
static File |
captureElement(org.openqa.selenium.chrome.ChromeDriver driver,
org.openqa.selenium.By by) |
static File |
captureElement(File screenshot,
org.openqa.selenium.Rectangle rectangle) |
public static File captureElement(org.openqa.selenium.chrome.ChromeDriver driver, org.openqa.selenium.By by) throws IOException
IOExceptionpublic static File captureElement(byte[] bytes, org.openqa.selenium.Rectangle rectangle) throws IOException
IOExceptionCopyright © 2023 onecode. All rights reserved.