public class ImageLocatorController
A controller contains logic relating to Image-based Object Recognition
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static List<WebElement> |
findImageInViewport(WebDriver webDriver, String pathToScreenshot)Check if an image is present in the current browser viewport. |
|
public static String |
saveWebElementScreenshot(WebDriver driver, WebElement element, String name, String path) |
|
public static List<WebElement> |
waitForImageInViewport(WebDriver webDriver, String pathToScreenshot, int timeoutInMs)Poll the browser viewport until the image appears or timeout expires. |
Check if an image is present in the current browser viewport. Returns matching WebElements at the image location, or empty list if not found.