mardi 14 mai 2019

Can't take full page screenshot using applitools in selenium with java

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. please help me out and I have just initiated learning, 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();

}

Aucun commentaire:

Enregistrer un commentaire