Class NullContext

java.lang.Object
jp.vmi.selenium.selenese.NullContext
All Implemented Interfaces:
Context, SubCommandMapProvider, org.openqa.selenium.WrapsDriver

public class NullContext
extends Object
implements Context
Null implementation of Context.
  • Constructor Details

    • NullContext

      public NullContext()
  • Method Details

    • prepareWebDriver

      public void prepareWebDriver()
      Description copied from interface: Context
      Prepare WebDriver.
      Specified by:
      prepareWebDriver in interface Context
    • getCurrentTestCase

      public TestCase getCurrentTestCase()
      Description copied from interface: Context
      Get current test-case.
      Specified by:
      getCurrentTestCase in interface Context
      Returns:
      current test-case.
    • setCurrentTestCase

      public void setCurrentTestCase​(TestCase testCase)
      Description copied from interface: Context
      Set current test-case.
      Specified by:
      setCurrentTestCase in interface Context
      Parameters:
      testCase - current test-case.
    • getPrintStream

      public PrintStream getPrintStream()
      Description copied from interface: Context
      Get PrintStream for logging.
      Specified by:
      getPrintStream in interface Context
      Returns:
      PrintStram object.
    • getWrappedDriver

      public org.openqa.selenium.WebDriver getWrappedDriver()
      Specified by:
      getWrappedDriver in interface org.openqa.selenium.WrapsDriver
    • getOverridingBaseURL

      public String getOverridingBaseURL()
      Description copied from interface: Context
      Get base URL for overriding test-case base URL.
      Specified by:
      getOverridingBaseURL in interface Context
      Returns:
      base URL.
    • getCurrentBaseURL

      public String getCurrentBaseURL()
      Description copied from interface: Context
      Get current base URL.
      Specified by:
      getCurrentBaseURL in interface Context
      Returns:
      base URL.
    • getCommandFactory

      public ICommandFactory getCommandFactory()
      Description copied from interface: Context
      Get CommandFactory instance.
      Specified by:
      getCommandFactory in interface Context
      Returns:
      CommandFactory instance.
    • getCommandListIterator

      public CommandListIterator getCommandListIterator()
      Description copied from interface: Context
      Get current CommandListIterator.
      Specified by:
      getCommandListIterator in interface Context
      Returns:
      current CommanListIterator.
    • pushCommandListIterator

      public void pushCommandListIterator​(CommandListIterator commandListIterator)
      Description copied from interface: Context
      Push CommandListIterator.
      Specified by:
      pushCommandListIterator in interface Context
      Parameters:
      commandListIterator - CommanListIterator.
    • popCommandListIterator

      public void popCommandListIterator()
      Description copied from interface: Context
      Pop CommandListIterator.
      Specified by:
      popCommandListIterator in interface Context
    • getVarsMap

      public VarsMap getVarsMap()
      Description copied from interface: Context
      Get variables map.
      Specified by:
      getVarsMap in interface Context
      Returns:
      VarsMap.
    • getRollupRules

      public RollupRules getRollupRules()
      Description copied from interface: Context
      Get rollup rules.
      Specified by:
      getRollupRules in interface Context
      Returns:
      RollupRules object.
    • getCollectionMap

      public CollectionMap getCollectionMap()
      Description copied from interface: Context
      Get collection map.
      Specified by:
      getCollectionMap in interface Context
      Returns:
      CollectionMap.
    • getInitialWindowHandle

      public String getInitialWindowHandle()
      Description copied from interface: Context
      Get initial window handle.
      Specified by:
      getInitialWindowHandle in interface Context
      Returns:
      window handle.
    • getElementFinder

      public WebDriverElementFinder getElementFinder()
      Description copied from interface: Context
      Get elemnt finder.
      Specified by:
      getElementFinder in interface Context
      Returns:
      element finder.
    • getEval

      public Eval getEval()
      Description copied from interface: Context
      Get evaluater.
      Specified by:
      getEval in interface Context
      Returns:
      eval object.
    • isTrue

      public boolean isTrue​(String expr)
      Description copied from interface: Context
      Get boolean value of expr.
      Specified by:
      isTrue in interface Context
      Parameters:
      expr - expression.
      Returns:
      cast from result of expr to Javascript Boolean.
    • getSubCommandMap

      public SubCommandMap getSubCommandMap()
      Description copied from interface: SubCommandMapProvider
      Get SubCommandMap instance.
      Specified by:
      getSubCommandMap in interface SubCommandMapProvider
      Returns:
      SubCommandMap instance.
    • getTimeout

      public int getTimeout()
      Description copied from interface: Context
      Get timeout for waiting. (ms)
      Specified by:
      getTimeout in interface Context
      Returns:
      timeout for waiting.
    • setTimeout

      public void setTimeout​(int timeout)
      Description copied from interface: Context
      Set timeout for waiting. (ms)
      Specified by:
      setTimeout in interface Context
      Parameters:
      timeout - for waiting.
    • resetSpeed

      public void resetSpeed()
      Description copied from interface: Context
      Reset speed as initial speed.
      Specified by:
      resetSpeed in interface Context
    • setSpeed

      public void setSpeed​(long speed)
      Description copied from interface: Context
      Set speed for setSpeed command.
      Specified by:
      setSpeed in interface Context
      Parameters:
      speed - speed.
    • getSpeed

      public long getSpeed()
      Description copied from interface: Context
      Get speed for setSpeed command.
      Specified by:
      getSpeed in interface Context
      Returns:
      speed.
    • waitSpeed

      public void waitSpeed()
      Description copied from interface: Context
      Wait according to speed setting.
      Specified by:
      waitSpeed in interface Context
    • getLatestPageInformation

      public PageInformation getLatestPageInformation()
      Description copied from interface: Context
      Get latest page information.
      Specified by:
      getLatestPageInformation in interface Context
      Returns:
      page information.
    • setLatestPageInformation

      public void setLatestPageInformation​(PageInformation pageInformation)
      Description copied from interface: Context
      Set latest page information.
      Specified by:
      setLatestPageInformation in interface Context
      Parameters:
      pageInformation - page information.
    • getLogFilter

      public EnumSet<LogFilter> getLogFilter()
      Description copied from interface: Context
      Get list of disabled page information.
      Specified by:
      getLogFilter in interface Context
      Returns:
      list of disabled page information.
    • getCookieFilter

      public CookieFilter getCookieFilter()
      Description copied from interface: Context
      Get cookie filter.
      Specified by:
      getCookieFilter in interface Context
      Returns:
      cookie filter.
    • setCookieFilter

      public void setCookieFilter​(CookieFilter cookieFilter)
      Description copied from interface: Context
      Set cookie filter.
      Specified by:
      setCookieFilter in interface Context
      Parameters:
      cookieFilter - cookie filter.
    • getJSLibrary

      public JSLibrary getJSLibrary()
      Description copied from interface: Context
      Get JavaScript library handler.
      Specified by:
      getJSLibrary in interface Context
      Returns:
      JavaScript library handler.
    • setJSLibrary

      public void setJSLibrary​(JSLibrary jsLibrary)
      Description copied from interface: Context
      Set JavaScript library handler.
      Specified by:
      setJSLibrary in interface Context
      Parameters:
      jsLibrary - JavaScript library handler.
    • getModifierKeyState

      public ModifierKeyState getModifierKeyState()
      Description copied from interface: Context
      Get modifier key state.
      Specified by:
      getModifierKeyState in interface Context
      Returns:
      modifier key state.
    • resetState

      public void resetState()
      Description copied from interface: Context
      Reset internal state.
      Specified by:
      resetState in interface Context
    • isInteractive

      public boolean isInteractive()
      Description copied from interface: Context
      Get interactive.
      Specified by:
      isInteractive in interface Context
      Returns:
      interactive.
    • getNextNativeAlertActionListener

      public AlertActionListener getNextNativeAlertActionListener()
      Description copied from interface: Context
      Get next native alert action.
      Specified by:
      getNextNativeAlertActionListener in interface Context
      Returns:
      next native alert state