Class EventInfoFactory

java.lang.Object
com.hp.lft.sdk.web.EventInfoFactory

public class EventInfoFactory extends Object
A factory for creating EventInfo to be passed to the fireEvent method of the Web test object.
  • Constructor Details

    • EventInfoFactory

      public EventInfoFactory()
  • Method Details

    • createEventInfo

      public static EventInfo createEventInfo(String type)
      Creates an event info for the given event type.
      Parameters:
      type - the type of event. The event can be any HTML DOM event. For details, see http://www.w3schools.com/jsref/dom_obj_event.asp
      Returns:
      event info for the given event type.
    • createMouseEventInfo

      public static MouseEventInfo createMouseEventInfo(MouseEventTypes type)
      Creates a mouse event info for the given mouse event type.
      Parameters:
      type - the type of mouse event.
      Returns:
      a mouse event info for the given mouse event type.