com.vaadin.testbench.browser.
Record Class BrowserTestInfo
Record Components:
driver
- reference to WebDriver
capabilities
- immutable list of capabilities
hubHostname
- hostname of the hub
runLocallyBrowser
- Browser
used for local execution
runLocallyBrowserVersion
- version of Browser
used for local execution
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 a
BrowserTestInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.Capabilities
Returns the value of the
capabilities
record component.org.openqa.selenium.WebDriver
driver()
Returns the value of the
driver
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 the
hubHostname
record component.Returns the value of the
runLocallyBrowser
record component.Returns the value of the
runLocallyBrowserVersion
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 a
BrowserTestInfo
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 with
Objects::equals(Object,Object)
. -
driver
public org.openqa.selenium.WebDriver driver()Returns the value of the
driver
record component.Returns:
the value of the
driver
record component -
capabilities
public org.openqa.selenium.Capabilities capabilities()Returns the value of the
capabilities
record component.Returns:
the value of the
capabilities
record component -
hubHostname
Returns the value of the
hubHostname
record component.Returns:
the value of the
hubHostname
record component -
runLocallyBrowser
Returns the value of the
runLocallyBrowser
record component.Returns:
the value of the
runLocallyBrowser
record component -
runLocallyBrowserVersion
Returns the value of the
runLocallyBrowserVersion
record component.Returns:
the value of the
runLocallyBrowserVersion
record component
-