I tried java with selenium to take full page screenshot in applitools and I used below code for full page screenshot but am not able to take full page screenshot , it takes only the current page and stitches.I have just initiated to learn automation testing,so please help me out in detail.
public void checklogin()
{
Eyes eyes=new Eyes();
eyes.setApiKey("MY API KEY");
eyes.setBatch(new BatchInfo("My Batch"));
eyes.setMatchLevel(MatchLevel.LAYOUT);
eyes.setForceFullPageScreenshot(true);
eyes.setStitchMode(StitchMode.CSS);
eyes.open(driver, "BasicInfo", "BasicInformation");
eyes.checkWindow("BasicPage");
eyes.check("basic",Target.window().fully());
eyes.close();
}