vendredi 1 septembre 2017

How can i compare the screenshot of webelement with predifined one using Sikuli + Java + WebDriver?

i want something like that:

> @FindBy(xpath = "//*[@class = 'ui primary fluid button
> js-start-free-trial']")
> private WebElementFacade tryUsNowButton;
> 
> Screen s = new Screen();
> Pattern image = new Pattern("images/try-us-button.png");

make a screenshot of the tryUsNowButton and compare to image.

Aucun commentaire:

Enregistrer un commentaire