Full Page Screenshot to compare with Figma. Map<String, Object> ss2options = new HashMap<>(); ss2options.put(“web”, Map.of(“browsers”, new String { “chrome”, “firefox”, “safari”, “edge” },“viewports”, new int { { 1500 } })); how to take full page screenshot to compare my whole page with figma whole page
Hi @akshi.desaiicicilombard
To capture a full-page screenshot in LambdaTest for Figma comparison, you can use the Selenium fullPageScreenshot
capability
You can check this guide:
For example:
Map<String, Object> ltOptions = new HashMap<>();
ltOptions.put("platformName", "Windows 11");
ltOptions.put("browserName", "Chrome");
ltOptions.put("browserVersion", "latest");
ltOptions.put("fullPageScreenshot", true); // Enable full-page capture
Map<String, Object> ss2options = new HashMap<>();
ss2options.put("web", Map.of(
"browsers", new String[]{"chrome", "firefox", "safari", "edge"},
"viewports", new int[]{1500}
));
ltOptions.put("smartUI.project", "Figma Comparison");
ltOptions.put("smartUI.build", "Build 1");
ltOptions.put("smartUI", ss2options);
capabilities.setCapability("LT:Options", ltOptions);