Package com.vaadin.testbench.screenshot
Class ReferenceNameGenerator
- java.lang.Object
-
- com.vaadin.testbench.screenshot.ReferenceNameGenerator
-
public class ReferenceNameGenerator extends Object
Generates the name of a reference screen shot from a string ID and browser information.
-
-
Constructor Summary
Constructors Constructor Description ReferenceNameGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgenerateName(String referenceId, org.openqa.selenium.Capabilities browserCapabilities)Generates the actual name of a reference screen shot from a reference ID and browser information.static StringgetMajorVersion(org.openqa.selenium.Capabilities browserCapabilities)Finds the major version by parsing the browser version string.
-
-
-
Method Detail
-
generateName
public String generateName(String referenceId, org.openqa.selenium.Capabilities browserCapabilities)
Generates the actual name of a reference screen shot from a reference ID and browser information.- Parameters:
referenceId- the reference IDbrowserCapabilities- aCapabilitiesinstance containing information on the browser.- Returns:
- The actual name.
-
getMajorVersion
public static String getMajorVersion(org.openqa.selenium.Capabilities browserCapabilities)
Finds the major version by parsing the browser version string.- Parameters:
browserCapabilities- the capabilities object holding the version information- Returns:
- the major version of the browser.
-
-