Class SeleniumMutator

  • All Implemented Interfaces:
    ScriptMutator

    public class SeleniumMutator
    extends java.lang.Object
    implements ScriptMutator
    Add a function backed by the closure-based implementation of Selenium Core.
    • Constructor Summary

      Constructors 
      Constructor Description
      SeleniumMutator​(java.lang.String method, java.lang.String atom)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void mutate​(java.lang.String script, java.lang.StringBuilder appendTo)
      Mutate a script.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SeleniumMutator

        public SeleniumMutator​(java.lang.String method,
                               java.lang.String atom)
    • Method Detail

      • mutate

        public void mutate​(java.lang.String script,
                           java.lang.StringBuilder appendTo)
        Description copied from interface: ScriptMutator
        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.
        Specified by:
        mutate in interface ScriptMutator
        Parameters:
        script - The original script.
        appendTo - The mutated script.