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.
Package com.vaadin.testbench.screenshot
Class ReferenceNameGenerator
java.lang.Object
com.vaadin.testbench.screenshot.ReferenceNameGenerator
Generates the name of a reference screen shot from a string ID and browser information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateName
(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.
-
Constructor Details
-
ReferenceNameGenerator
public ReferenceNameGenerator()
-
-
Method Details
-
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
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.
-