public class Percy extends Object
| Constructor and Description |
|---|
Percy(org.openqa.selenium.WebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
snapshot(String name)
Take a snapshot and upload it to Percy.
|
void |
snapshot(String name,
List<Integer> widths)
Take a snapshot and upload it to Percy.
|
void |
snapshot(String name,
List<Integer> widths,
Integer minHeight)
Take a snapshot and upload it to Percy.
|
void |
snapshot(String name,
List<Integer> widths,
Integer minHeight,
boolean enableJavaScript)
Take a snapshot and upload it to Percy.
|
void |
snapshot(String name,
List<Integer> widths,
Integer minHeight,
boolean enableJavaScript,
String percyCSS)
Take a snapshot and upload it to Percy.
|
public Percy(org.openqa.selenium.WebDriver driver)
driver - The Selenium WebDriver object that will hold the browser
session to snapshot.public void snapshot(String name)
name - The human-readable name of the snapshot. Should be unique.public void snapshot(String name, List<Integer> widths)
name - The human-readable name of the snapshot. Should be unique.widths - The browser widths at which you want to take the snapshot. In
pixels.public void snapshot(String name, List<Integer> widths, Integer minHeight)
name - The human-readable name of the snapshot. Should be unique.widths - The browser widths at which you want to take the snapshot. In
pixels.minHeight - The minimum height of the resulting snapshot. In pixels.public void snapshot(String name, List<Integer> widths, Integer minHeight, boolean enableJavaScript)
name - The human-readable name of the snapshot. Should be unique.widths - The browser widths at which you want to take the snapshot. In
pixels.minHeight - The minimum height of the resulting snapshot. In pixels.enableJavaScript - Enable JavaScript in the Percy rendering environmentpublic void snapshot(String name, @Nullable List<Integer> widths, Integer minHeight, boolean enableJavaScript, String percyCSS)
name - The human-readable name of the snapshot. Should be unique.widths - The browser widths at which you want to take the snapshot.
In pixels.minHeight - The minimum height of the resulting snapshot. In pixels.enableJavaScript - Enable JavaScript in the Percy rendering environmentpercyCSS - Percy specific CSS that is only applied in Percy's browsersCopyright © 2020. All rights reserved.