We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
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 and Description ReferenceNameGenerator()
-
Method Summary
All Methods Modifier and Type Method and Description 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.
static String
getMajorVersion(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
- aCapabilities
instance 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 informationReturns:
the major version of the browser.
-
-