You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.testbench.

Class CyclicObjectWorkaround

java.lang.Object
com.vaadin.testbench.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 Details

    • CyclicObjectWorkaround

      public CyclicObjectWorkaround()
  • Method Details

    • 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