You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am exploring ashot for visual testing in our project but it seems like this ignore element feature, is not very clear, because of that, we are not able to use it. Let me explain my use case:
I have a webpage where a image appears which I want to exclude.
This is how I am taking screenshot:
public static Screenshot initiateImageCompareWithIgnoringElement() { return new AShot() .addIgnoredElement(By.xpath("//img[@alt = 'Automation']")) // ignored element(s) .takeScreenshot(driver); }
I am exploring ashot for visual testing in our project but it seems like this ignore element feature, is not very clear, because of that, we are not able to use it. Let me explain my use case:
I have a webpage where a image appears which I want to exclude.
This is how I am taking screenshot:
public static Screenshot initiateImageCompareWithIgnoringElement() { return new AShot() .addIgnoredElement(By.xpath("//img[@alt = 'Automation']")) // ignored element(s) .takeScreenshot(driver); }
`
@test ()
public void testHomePageIgnoringDynamicContent(Method method) throws Exception {
seleniumBase.launchHomePage();
Thread.sleep(1000*10);
String actualImage = method.getName();
String expectedImage = method.getName();
String diffImage = method.getName();
`
May I know what exactly is missing here because as per doc, I dont think, anything else is needed.
The text was updated successfully, but these errors were encountered: