Class NullContext

    • Constructor Detail

      • NullContext

        public NullContext()
    • Method Detail

      • 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.
      • 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.
      • getInitialWindowHandle

        public String getInitialWindowHandle()
        Description copied from interface: Context
        Get initial window handle.
        Specified by:
        getInitialWindowHandle in interface Context
        Returns:
        window handle.
      • 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.
      • 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
      • 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.
      • 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.
      • 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.