Package com.codeborne.selenide.impl
Record Class WebDriverInstance
java.lang.Object
java.lang.Record
com.codeborne.selenide.impl.WebDriverInstance
- All Implemented Interfaces:
Disposable
public record WebDriverInstance(long threadId, Config config, org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer proxy, @Nullable DownloadsFolder downloadsFolder, List<org.openqa.selenium.logging.LogEntry> browserLogs)
extends Record
implements Disposable
An instance of webdriver with its resources: config, proxy and downloads folder.
-
Constructor Summary
ConstructorsConstructorDescriptionWebDriverInstance(long threadId, Config config, org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer proxy, @Nullable DownloadsFolder downloadsFolder, List<org.openqa.selenium.logging.LogEntry> browserLogs) Creates an instance of aWebDriverInstancerecord class.WebDriverInstance(Config config, org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer proxy, @Nullable DownloadsFolder downloadsFolder) -
Method Summary
Modifier and TypeMethodDescriptionList<org.openqa.selenium.logging.LogEntry>Returns the value of thebrowserLogsrecord component.config()Returns the value of theconfigrecord component.voiddispose()@Nullable DownloadsFolderReturns the value of thedownloadsFolderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.proxy()Returns the value of theproxyrecord component.longthreadId()Returns the value of thethreadIdrecord component.final StringtoString()Returns a string representation of this record class.org.openqa.selenium.WebDriverReturns the value of thewebDriverrecord component.
-
Constructor Details
-
WebDriverInstance
public WebDriverInstance(Config config, org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer proxy, @Nullable DownloadsFolder downloadsFolder) -
WebDriverInstance
public WebDriverInstance(long threadId, Config config, org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer proxy, @Nullable DownloadsFolder downloadsFolder, List<org.openqa.selenium.logging.LogEntry> browserLogs) Creates an instance of aWebDriverInstancerecord class.- Parameters:
threadId- the value for thethreadIdrecord componentconfig- the value for theconfigrecord componentwebDriver- the value for thewebDriverrecord componentproxy- the value for theproxyrecord componentdownloadsFolder- the value for thedownloadsFolderrecord componentbrowserLogs- the value for thebrowserLogsrecord component
-
-
Method Details
-
proxy
Returns the value of theproxyrecord component.- Returns:
- the value of the
proxyrecord component
-
dispose
public void dispose()- Specified by:
disposein interfaceDisposable
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
threadId
public long threadId()Returns the value of thethreadIdrecord component.- Returns:
- the value of the
threadIdrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
webDriver
public org.openqa.selenium.WebDriver webDriver()Returns the value of thewebDriverrecord component.- Returns:
- the value of the
webDriverrecord component
-
downloadsFolder
Returns the value of thedownloadsFolderrecord component.- Returns:
- the value of the
downloadsFolderrecord component
-
browserLogs
Returns the value of thebrowserLogsrecord component.- Returns:
- the value of the
browserLogsrecord component
-