Package jp.vmi.selenium.selenese
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 Summary
Constructors Constructor Description NullContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionMapgetCollectionMap()Get collection map.ICommandFactorygetCommandFactory()Get CommandFactory instance.CommandListIteratorgetCommandListIterator()Get current CommandListIterator.CookieFiltergetCookieFilter()Get cookie filter.StringgetCurrentBaseURL()Get current base URL.TestCasegetCurrentTestCase()Get current test-case.WebDriverElementFindergetElementFinder()Get elemnt finder.EvalgetEval()Get evaluater.StringgetInitialWindowHandle()Get initial window handle.JSLibrarygetJSLibrary()Get JavaScript library handler.PageInformationgetLatestPageInformation()Get latest page information.EnumSet<LogFilter>getLogFilter()Get list of disabled page information.ModifierKeyStategetModifierKeyState()Get modifier key state.AlertActionListenergetNextNativeAlertActionListener()Get next native alert action.StringgetOverridingBaseURL()Get base URL for overriding test-case base URL.PrintStreamgetPrintStream()Get PrintStream for logging.RollupRulesgetRollupRules()Get rollup rules.longgetSpeed()Get speed for setSpeed command.SubCommandMapgetSubCommandMap()Get SubCommandMap instance.intgetTimeout()Get timeout for waiting.VarsMapgetVarsMap()Get variables map.org.openqa.selenium.WebDrivergetWrappedDriver()booleanisInteractive()Get interactive.booleanisTrue(String expr)Get boolean value of expr.voidpopCommandListIterator()Pop CommandListIterator.voidprepareWebDriver()Prepare WebDriver.voidpushCommandListIterator(CommandListIterator commandListIterator)Push CommandListIterator.voidresetSpeed()Reset speed as initial speed.voidresetState()Reset internal state.voidsetCookieFilter(CookieFilter cookieFilter)Set cookie filter.voidsetCurrentTestCase(TestCase testCase)Set current test-case.voidsetJSLibrary(JSLibrary jsLibrary)Set JavaScript library handler.voidsetLatestPageInformation(PageInformation pageInformation)Set latest page information.voidsetSpeed(long speed)Set speed for setSpeed command.voidsetTimeout(int timeout)Set timeout for waiting.voidwaitSpeed()Wait according to speed setting.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jp.vmi.selenium.selenese.Context
executeAsyncScript, executeScript, findElement, findElements, getBrowserName, getFlowControlState, getMaxRetries, getRetries, getTestCaseMap, hasReachedMaxRetries, incrementRetries, isBrowser, isW3cAction, resetRetries, setFlowControlState, setMaxRetries, setTestCaseMap
-
-
-
-
Method Detail
-
prepareWebDriver
public void prepareWebDriver()
Description copied from interface:ContextPrepare WebDriver.- Specified by:
prepareWebDriverin interfaceContext
-
getCurrentTestCase
public TestCase getCurrentTestCase()
Description copied from interface:ContextGet current test-case.- Specified by:
getCurrentTestCasein interfaceContext- Returns:
- current test-case.
-
setCurrentTestCase
public void setCurrentTestCase(TestCase testCase)
Description copied from interface:ContextSet current test-case.- Specified by:
setCurrentTestCasein interfaceContext- Parameters:
testCase- current test-case.
-
getPrintStream
public PrintStream getPrintStream()
Description copied from interface:ContextGet PrintStream for logging.- Specified by:
getPrintStreamin interfaceContext- Returns:
- PrintStram object.
-
getWrappedDriver
public org.openqa.selenium.WebDriver getWrappedDriver()
- Specified by:
getWrappedDriverin interfaceorg.openqa.selenium.WrapsDriver
-
getOverridingBaseURL
public String getOverridingBaseURL()
Description copied from interface:ContextGet base URL for overriding test-case base URL.- Specified by:
getOverridingBaseURLin interfaceContext- Returns:
- base URL.
-
getCurrentBaseURL
public String getCurrentBaseURL()
Description copied from interface:ContextGet current base URL.- Specified by:
getCurrentBaseURLin interfaceContext- Returns:
- base URL.
-
getCommandFactory
public ICommandFactory getCommandFactory()
Description copied from interface:ContextGet CommandFactory instance.- Specified by:
getCommandFactoryin interfaceContext- Returns:
- CommandFactory instance.
-
getCommandListIterator
public CommandListIterator getCommandListIterator()
Description copied from interface:ContextGet current CommandListIterator.- Specified by:
getCommandListIteratorin interfaceContext- Returns:
- current CommanListIterator.
-
pushCommandListIterator
public void pushCommandListIterator(CommandListIterator commandListIterator)
Description copied from interface:ContextPush CommandListIterator.- Specified by:
pushCommandListIteratorin interfaceContext- Parameters:
commandListIterator- CommanListIterator.
-
popCommandListIterator
public void popCommandListIterator()
Description copied from interface:ContextPop CommandListIterator.- Specified by:
popCommandListIteratorin interfaceContext
-
getVarsMap
public VarsMap getVarsMap()
Description copied from interface:ContextGet variables map.- Specified by:
getVarsMapin interfaceContext- Returns:
- VarsMap.
-
getRollupRules
public RollupRules getRollupRules()
Description copied from interface:ContextGet rollup rules.- Specified by:
getRollupRulesin interfaceContext- Returns:
- RollupRules object.
-
getCollectionMap
public CollectionMap getCollectionMap()
Description copied from interface:ContextGet collection map.- Specified by:
getCollectionMapin interfaceContext- Returns:
- CollectionMap.
-
getInitialWindowHandle
public String getInitialWindowHandle()
Description copied from interface:ContextGet initial window handle.- Specified by:
getInitialWindowHandlein interfaceContext- Returns:
- window handle.
-
getElementFinder
public WebDriverElementFinder getElementFinder()
Description copied from interface:ContextGet elemnt finder.- Specified by:
getElementFinderin interfaceContext- Returns:
- element finder.
-
isTrue
public boolean isTrue(String expr)
Description copied from interface:ContextGet boolean value of expr.
-
getSubCommandMap
public SubCommandMap getSubCommandMap()
Description copied from interface:SubCommandMapProviderGet SubCommandMap instance.- Specified by:
getSubCommandMapin interfaceSubCommandMapProvider- Returns:
- SubCommandMap instance.
-
getTimeout
public int getTimeout()
Description copied from interface:ContextGet timeout for waiting. (ms)- Specified by:
getTimeoutin interfaceContext- Returns:
- timeout for waiting.
-
setTimeout
public void setTimeout(int timeout)
Description copied from interface:ContextSet timeout for waiting. (ms)- Specified by:
setTimeoutin interfaceContext- Parameters:
timeout- for waiting.
-
resetSpeed
public void resetSpeed()
Description copied from interface:ContextReset speed as initial speed.- Specified by:
resetSpeedin interfaceContext
-
setSpeed
public void setSpeed(long speed)
Description copied from interface:ContextSet speed for setSpeed command.
-
getSpeed
public long getSpeed()
Description copied from interface:ContextGet speed for setSpeed command.
-
waitSpeed
public void waitSpeed()
Description copied from interface:ContextWait according to speed setting.
-
getLatestPageInformation
public PageInformation getLatestPageInformation()
Description copied from interface:ContextGet latest page information.- Specified by:
getLatestPageInformationin interfaceContext- Returns:
- page information.
-
setLatestPageInformation
public void setLatestPageInformation(PageInformation pageInformation)
Description copied from interface:ContextSet latest page information.- Specified by:
setLatestPageInformationin interfaceContext- Parameters:
pageInformation- page information.
-
getLogFilter
public EnumSet<LogFilter> getLogFilter()
Description copied from interface:ContextGet list of disabled page information.- Specified by:
getLogFilterin interfaceContext- Returns:
- list of disabled page information.
-
getCookieFilter
public CookieFilter getCookieFilter()
Description copied from interface:ContextGet cookie filter.- Specified by:
getCookieFilterin interfaceContext- Returns:
- cookie filter.
-
setCookieFilter
public void setCookieFilter(CookieFilter cookieFilter)
Description copied from interface:ContextSet cookie filter.- Specified by:
setCookieFilterin interfaceContext- Parameters:
cookieFilter- cookie filter.
-
getJSLibrary
public JSLibrary getJSLibrary()
Description copied from interface:ContextGet JavaScript library handler.- Specified by:
getJSLibraryin interfaceContext- Returns:
- JavaScript library handler.
-
setJSLibrary
public void setJSLibrary(JSLibrary jsLibrary)
Description copied from interface:ContextSet JavaScript library handler.- Specified by:
setJSLibraryin interfaceContext- Parameters:
jsLibrary- JavaScript library handler.
-
getModifierKeyState
public ModifierKeyState getModifierKeyState()
Description copied from interface:ContextGet modifier key state.- Specified by:
getModifierKeyStatein interfaceContext- Returns:
- modifier key state.
-
resetState
public void resetState()
Description copied from interface:ContextReset internal state.- Specified by:
resetStatein interfaceContext
-
isInteractive
public boolean isInteractive()
Description copied from interface:ContextGet interactive.- Specified by:
isInteractivein interfaceContext- Returns:
- interactive.
-
getNextNativeAlertActionListener
public AlertActionListener getNextNativeAlertActionListener()
Description copied from interface:ContextGet next native alert action.- Specified by:
getNextNativeAlertActionListenerin interfaceContext- Returns:
- next native alert state
-
-