Package com.vaadin.testbench.browser
Record Class BrowserTestInfo
java.lang.Object
java.lang.Record
com.vaadin.testbench.browser.BrowserTestInfo
- Record Components:
driver- reference toWebDrivercapabilities- immutable list of capabilitieshubHostname- hostname of the hubrunLocallyBrowser-Browserused for local executionrunLocallyBrowserVersion- version ofBrowserused for local execution
public record BrowserTestInfo(org.openqa.selenium.WebDriver driver, org.openqa.selenium.Capabilities capabilities, String hubHostname, Browser runLocallyBrowser, String runLocallyBrowserVersion)
extends Record
Record that is automatically resolved by
BrowserExtension providing
most important information on currently run test.-
Constructor Summary
ConstructorsConstructorDescriptionBrowserTestInfo(org.openqa.selenium.WebDriver driver, org.openqa.selenium.Capabilities capabilities, String hubHostname, Browser runLocallyBrowser, String runLocallyBrowserVersion) Creates an instance of aBrowserTestInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.CapabilitiesReturns the value of thecapabilitiesrecord component.org.openqa.selenium.WebDriverdriver()Returns the value of thedriverrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehubHostnamerecord component.Returns the value of therunLocallyBrowserrecord component.Returns the value of therunLocallyBrowserVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrowserTestInfo
public BrowserTestInfo(org.openqa.selenium.WebDriver driver, org.openqa.selenium.Capabilities capabilities, String hubHostname, Browser runLocallyBrowser, String runLocallyBrowserVersion) Creates an instance of aBrowserTestInforecord class.- Parameters:
driver- the value for thedriverrecord componentcapabilities- the value for thecapabilitiesrecord componenthubHostname- the value for thehubHostnamerecord componentrunLocallyBrowser- the value for therunLocallyBrowserrecord componentrunLocallyBrowserVersion- the value for therunLocallyBrowserVersionrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
driver
public org.openqa.selenium.WebDriver driver()Returns the value of thedriverrecord component.- Returns:
- the value of the
driverrecord component
-
capabilities
public org.openqa.selenium.Capabilities capabilities()Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
hubHostname
Returns the value of thehubHostnamerecord component.- Returns:
- the value of the
hubHostnamerecord component
-
runLocallyBrowser
Returns the value of therunLocallyBrowserrecord component.- Returns:
- the value of the
runLocallyBrowserrecord component
-
runLocallyBrowserVersion
Returns the value of therunLocallyBrowserVersionrecord component.- Returns:
- the value of the
runLocallyBrowserVersionrecord component
-