Function When_I_trigger_event

  • When I trigger event:

    When I trigger event {string}
    

    Parameters

    • eventName: string

      The name of the event to be triggered on the DOM element.

    Returns void

    Trigger a mouseover on the button:

    When I trigger event "mouseover"
    

    The DOM element must be in an "interactable" state prior to the triggered event happening (it must be visible and not disabled).

    A preceding step like "When I find element by text" is required. For example:

    When I find element by text "Text"
    And I trigger event "mousedown"