java.lang.Object
org.springframework.boot.test.autoconfigure.web.servlet.WebDriverScope
All Implemented Interfaces:
org.springframework.beans.factory.config.Scope

public class WebDriverScope extends Object implements org.springframework.beans.factory.config.Scope
A special scope used for WebDriver beans. Usually registered by a WebDriverContextCustomizerFactory and reset by a WebDriverTestExecutionListener.
Since:
3.0.0
See Also:
  • Field Details

  • Constructor Details

    • WebDriverScope

      public WebDriverScope()
  • Method Details

    • get

      public Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
      Specified by:
      get in interface org.springframework.beans.factory.config.Scope
    • remove

      public Object remove(String name)
      Specified by:
      remove in interface org.springframework.beans.factory.config.Scope
    • registerDestructionCallback

      public void registerDestructionCallback(String name, Runnable callback)
      Specified by:
      registerDestructionCallback in interface org.springframework.beans.factory.config.Scope
    • resolveContextualObject

      public Object resolveContextualObject(String key)
      Specified by:
      resolveContextualObject in interface org.springframework.beans.factory.config.Scope
    • getConversationId

      public String getConversationId()
      Specified by:
      getConversationId in interface org.springframework.beans.factory.config.Scope