Class Ouia

java.lang.Object
org.patternfly.core.Ouia

public final class Ouia extends Object
Support for Open UI Automation.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    ouia(HTMLElement element, String componentType)
    Sets data-ouia-component-type and data-ouia-safe="true" on the given HTML element.
    static void
    ouia(HTMLElement element, String componentId, String componentType)
    Sets data-ouia-component-id, data-ouia-component-type, and data-ouia-safe="true" on the given HTML element.
    static void
    ouia(SVGElement element, String componentType)
    Sets data-ouia-component-type and data-ouia-safe="true" on the given SVG element.
    static void
    ouia(SVGElement element, String componentId, String componentType)
    Sets data-ouia-component-id, data-ouia-component-type, and data-ouia-safe="true" on the given SVG element.
    static void
    ouiaSafe(HTMLElement element, boolean safe)
    Sets data-ouia-safe to the given value on the given HTML element.
    static void
    ouiaSafe(SVGElement element, boolean safe)
    Sets data-ouia-safe to the given value on the given SVG element.
    static void
    Marks the element as unsafe (data-ouia-safe="false") and restores it to safe after the CSS transition ends.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • ouia

      public static void ouia(HTMLElement element, String componentType)
      Sets data-ouia-component-type and data-ouia-safe="true" on the given HTML element.
    • ouia

      public static void ouia(HTMLElement element, String componentId, String componentType)
      Sets data-ouia-component-id, data-ouia-component-type, and data-ouia-safe="true" on the given HTML element.
    • ouia

      public static void ouia(SVGElement element, String componentType)
      Sets data-ouia-component-type and data-ouia-safe="true" on the given SVG element.
    • ouia

      public static void ouia(SVGElement element, String componentId, String componentType)
      Sets data-ouia-component-id, data-ouia-component-type, and data-ouia-safe="true" on the given SVG element.
    • ouiaSafe

      public static void ouiaSafe(HTMLElement element, boolean safe)
      Sets data-ouia-safe to the given value on the given HTML element.
    • ouiaSafe

      public static void ouiaSafe(SVGElement element, boolean safe)
      Sets data-ouia-safe to the given value on the given SVG element.
    • ouiaTransition

      public static void ouiaTransition(HTMLElement element)
      Marks the element as unsafe (data-ouia-safe="false") and restores it to safe after the CSS transition ends. A fallback timeout ensures the element is marked safe even if no CSS transition is defined.