org.openqa.selenium.internal.seleniumemulation
Interface ScriptMutator
- All Known Implementing Classes:
- CompoundMutator, FunctionDeclaration, MethodDeclaration, SeleniumMutator, VariableDeclaration
public interface ScriptMutator
A mechanism for taking a single method from a script meant for Selenium Core and converting to
something that webdriver can evaluate.
mutate
void mutate(String script,
StringBuilder outputTo)
- Mutate 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.
- Parameters:
script
- The original script.outputTo
- The mutated script.
Copyright © 2012. All Rights Reserved.