Package jp.vmi.selenium.selenese.mutator
Class SeleneseRunnerMutator
java.lang.Object
jp.vmi.selenium.selenese.mutator.SeleneseRunnerMutator
- All Implemented Interfaces:
ScriptMutator
public class SeleneseRunnerMutator extends Object implements ScriptMutator
A class that collects together a group of other mutators and applies them in the order they've
been added to any script that needs modification. Any JS to be executed will be wrapped in an
"eval" block so that a meaningful return value can be created.
-
Constructor Summary
Constructors Constructor Description SeleneseRunnerMutator()Constructor. -
Method Summary
Modifier and Type Method Description voidmutate(Context context, String script, StringBuilder outputTo)Mutate a script.
-
Constructor Details
-
SeleneseRunnerMutator
public SeleneseRunnerMutator()Constructor.
-
-
Method Details
-
mutate
Description copied from interface:ScriptMutatorMutate a script. The original, unmodified script is used to generate a script on the StringBuilder, the "toString" method of which should be used to get the result. We make use of a StringBuilder rather than a normal String so that we can efficiently chain mutators.- Specified by:
mutatein interfaceScriptMutator- Parameters:
context- SeleneseRunner context.script- The original script.outputTo- The mutated script.
-