public class ImageLocatorController
A controller contains logic relating to Image-based Object Recognition
Type Params | Return Type | Name and description |
---|---|---|
|
public static List<WebElement> |
findElementByScreenShot(WebDriver webDriver, String pathToScreenshot, int timeout) Retrieve image at the given path, then look for similar images using Sikuli. |
|
public static String |
saveWebElementScreenshot(WebDriver driver, 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.