Interface WebDriverInfo


  • @Beta
    public interface WebDriverInfo
    Describes, in general terms, a webdriver instance. This allows services to query the system at run time and offer instances of particular WebDriver subclasses should they be available.
    • Method Detail

      • getDisplayName

        java.lang.String getDisplayName()
        Returns:
        A human-readable name that describes the browser.
      • isAvailable

        boolean isAvailable()
        Often, a WebDriver instance needs one or more supporting files or executables to be present (such as a vendor-provided executable which speaks the WebDriver Protocol). This means that even though the driver classes might be present in Java, it would make no sense to attempt to instantiate the driver itself.
        Returns:
        Whether or not the prerequisites required for this WebDriver are present.
      • getMaximumSimultaneousSessions

        int getMaximumSimultaneousSessions()
        Some browsers require all the resources of the current system in order to run (for example, Safari on iOS) and so do not support multiple simultaneous sessions on the same system. Other browsers can create isolated state for each new WebDriver instance.

        The count of simultaneous sessions is typically 1, some multiple of the available number of cores, or Integer.MAX_VALUE if the number is unbounded or no-one cares.