public class ImageLocatorController extends Object
A controller contains logic relating to Image-based Object Recognition
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static List<org.openqa.selenium.WebElement> |
findElementByScreenShot(org.openqa.selenium.WebDriver webDriver, String pathToScreenshot, int timeout)Retrieve image at the given path, then look for similar images using Sikuli. |
|
public static List<org.openqa.selenium.WebElement> |
findElementByScreenShot(org.openqa.selenium.WebDriver webDriver, String pathToScreenshot, AbortSignal abortSignal) |
|
public static String |
saveWebElementScreenshot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement element, String name, String path) |
Retrieve image at the given path, then look for similar images using Sikuli. Given a matched image's position, use the coordinates to retrieve the corresponding web elements, then sort ascending in size differences with the target image.