Can not take a full page screenshot in Applitools C# Can not take a full page screenshot in Applitools C# selenium selenium

Can not take a full page screenshot in Applitools C#


I work for Applitools and sorry for your troubles. Maybe you did not see our replies or they went to your spam folder. You need to set ForceFullPageScreenshot = true and StitchMode = StitchModes.CSS in order to capture a full page screenshot.

The below code example is everything you'd need to do in order to capture a full page image. Also, please make sure your .Net Eyes.Sdk version is >= 2.6.0 and Eyes.Selenium >= 2.5.0.

If you have any further questions or still encountering issues with this please feel free to email me directly. Thanks.

var eyes = new Eyes();eyes.ApiKey = "your-api-key";eyes.ForceFullPageScreenshot = true;eyes.StitchMode = StitchModes.CSS;eyes.Open(driver, "Zinc", testName, new Size(800, 600)); //last parameter is your viewport size IF testing on a browser. Do not set if testing on a mobile devices.eyes.CheckWindow("Zinc");//or new Fluet API methodeyes.Check("Zinc", Applitools.Selenium.Target.Window().Fully();eyes.Close();


Use extent Reporting library, in that you can take screen shot as well as an interactive report on pass and fail cases. here is the link how it works: http://www.softwaretestingmaterial.com/generate-extent-reports/


If you want to take complete page Screenshot/ Particular element with Applitools. You can use lines of code:-

Full Screenshot

eyes.setHideScrollbars(false);eyes.setStitchMode(StitchMode.CSS);eyes.setForceFullPageScreenshot(true);eyes.checkWindow();

Take screenshot for particular element

WebElement Button = driver.findElement(By.xpath("//button[@id='login-btn']"));eyes.setHideScrollbars(false);eyes.setStitchMode(StitchMode.CSS);     eyes.open(driver, projectName, testName);eyes.setMatchLevel(MatchLevel.EXACT);       eyes.checkElement(Button );