Class CyclicObjectWorkaround


  • public class CyclicObjectWorkaround
    extends Object
    Provides a workaround to avoid "cyclic object value" when returning an element list (webdrivers use JSON.stringify([element1, ..., elementN]) internally).
    • Constructor Detail

      • CyclicObjectWorkaround

        public CyclicObjectWorkaround()
    • Method Detail

      • get

        public static String get​(String jsObjectName)
        Produces Javascript which modifies a given object (list) so that it can be returned to the test.
        Parameters:
        jsObjectName - the name of the Javascript object to manipulate
        Returns:
        JS code which manipulates the object