Interface SupportsRecreateChromeDriverSessionsOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.Boolean> doesRecreateChromeDriverSessions()
      Get whether chromedriver sessions should be killed and then recreated instead of just suspending it on context switch.
      default T recreateChromeDriverSessions()
      Enforce chromedriver sessions to be killed and then recreated instead of just suspending it on context switch.
      default T setRecreateChromeDriverSessions​(boolean value)
      If this capability is set to true then chromedriver session is always going to be killed and then recreated instead of just suspending it on context switching.
      • Methods inherited from interface org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • Field Detail

      • RECREATE_CHROME_DRIVER_SESSIONS

        static final java.lang.String RECREATE_CHROME_DRIVER_SESSIONS
        See Also:
        Constant Field Values
    • Method Detail

      • recreateChromeDriverSessions

        default T recreateChromeDriverSessions()
        Enforce chromedriver sessions to be killed and then recreated instead of just suspending it on context switch.
        Returns:
        self instance for chaining.
      • setRecreateChromeDriverSessions

        default T setRecreateChromeDriverSessions​(boolean value)
        If this capability is set to true then chromedriver session is always going to be killed and then recreated instead of just suspending it on context switching. false by default.
        Parameters:
        value - Whether to recreate chromedriver sessions.
        Returns:
        self instance for chaining.
      • doesRecreateChromeDriverSessions

        default java.util.Optional<java.lang.Boolean> doesRecreateChromeDriverSessions()
        Get whether chromedriver sessions should be killed and then recreated instead of just suspending it on context switch.
        Returns:
        True or false.