Package jp.vmi.selenium.selenese
Class SimpleInteractiveModeHandler
java.lang.Object
jp.vmi.selenium.selenese.SimpleInteractiveModeHandler
- All Implemented Interfaces:
InteractiveModeHandler
public class SimpleInteractiveModeHandler extends Object implements InteractiveModeHandler
Simple interactive mode handler.
-
Field Summary
Fields inherited from interface jp.vmi.selenium.selenese.InteractiveModeHandler
ALWAYS_NON_INTERACTIVE -
Constructor Summary
Constructors Constructor Description SimpleInteractiveModeHandler() -
Method Summary
Modifier and Type Method Description voidenableIfBreakpointReached(CurrentCommand curCmd)Enable if a breakpoint is reached.CurrentCommandhandle(Context context, CommandListIterator commandListIterator, CurrentCommand curCmd)Handle interactive mode.booleanisEnabled()Get interactive mode is enabled or not.voidsetEnabled(boolean isEnabled)Enable or disable interactive mode.
-
Constructor Details
-
SimpleInteractiveModeHandler
public SimpleInteractiveModeHandler()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Description copied from interface:InteractiveModeHandlerGet interactive mode is enabled or not.- Specified by:
isEnabledin interfaceInteractiveModeHandler- Returns:
- true if interactive mode is enabled.
-
setEnabled
public void setEnabled(boolean isEnabled)Description copied from interface:InteractiveModeHandlerEnable or disable interactive mode.- Specified by:
setEnabledin interfaceInteractiveModeHandler- Parameters:
isEnabled- true if enable interactive mode.
-
enableIfBreakpointReached
Description copied from interface:InteractiveModeHandlerEnable if a breakpoint is reached.- Specified by:
enableIfBreakpointReachedin interfaceInteractiveModeHandler- Parameters:
curCmd- current command.
-
handle
public CurrentCommand handle(Context context, CommandListIterator commandListIterator, CurrentCommand curCmd)Description copied from interface:InteractiveModeHandlerHandle interactive mode.- Specified by:
handlein interfaceInteractiveModeHandler- Parameters:
context- context.commandListIterator- command list iterator.curCmd- current command.- Returns:
- curCmd itself or replaced command.
-