Record Class BrowserTestInfo

java.lang.Object
java.lang.Record
com.vaadin.testbench.browser.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

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 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 the driver record component
      capabilities - the value for the capabilities record component
      hubHostname - the value for the hubHostname record component
      runLocallyBrowser - the value for the runLocallyBrowser record component
      runLocallyBrowserVersion - the value for the runLocallyBrowserVersion record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • 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

      public String hubHostname()
      Returns the value of the hubHostname record component.
      Returns:
      the value of the hubHostname record component
    • runLocallyBrowser

      public Browser runLocallyBrowser()
      Returns the value of the runLocallyBrowser record component.
      Returns:
      the value of the runLocallyBrowser record component
    • runLocallyBrowserVersion

      public String runLocallyBrowserVersion()
      Returns the value of the runLocallyBrowserVersion record component.
      Returns:
      the value of the runLocallyBrowserVersion record component