Package com.vaadin.testbench.browser
Record Class BrowserTestInfo
java.lang.Object
java.lang.Record
com.vaadin.testbench.browser.BrowserTestInfo
- Record Components:
driver
- reference toWebDriver
capabilities
- immutable list of capabilitieshubHostname
- hostname of the hubrunLocallyBrowser
-Browser
used for local executionrunLocallyBrowserVersion
- version ofBrowser
used 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 aBrowserTestInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.Capabilities
Returns the value of thecapabilities
record component.org.openqa.selenium.WebDriver
driver()
Returns the value of thedriver
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehubHostname
record component.Returns the value of therunLocallyBrowser
record component.Returns the value of therunLocallyBrowserVersion
record component.final String
toString()
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 aBrowserTestInfo
record class.- Parameters:
driver
- the value for thedriver
record componentcapabilities
- the value for thecapabilities
record componenthubHostname
- the value for thehubHostname
record componentrunLocallyBrowser
- the value for therunLocallyBrowser
record componentrunLocallyBrowserVersion
- the value for therunLocallyBrowserVersion
record 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 thedriver
record component.- Returns:
- the value of the
driver
record component
-
capabilities
public org.openqa.selenium.Capabilities capabilities()Returns the value of thecapabilities
record component.- Returns:
- the value of the
capabilities
record component
-
hubHostname
Returns the value of thehubHostname
record component.- Returns:
- the value of the
hubHostname
record component
-
runLocallyBrowser
Returns the value of therunLocallyBrowser
record component.- Returns:
- the value of the
runLocallyBrowser
record component
-
runLocallyBrowserVersion
Returns the value of therunLocallyBrowserVersion
record component.- Returns:
- the value of the
runLocallyBrowserVersion
record component
-