Information:

Environment

  • Dynatrace Recorder
  • IE Agent
  • Firefox Agent
Symptoms

  • A an event is not being triggered properly when the Dynatrace Recorder interacts with it
  • Example events:
    • onclick
    • onmouseover
    • onkeydown
    • onkeyup
Solution

Use the code below in a Custom action to manually fire the event.

  • Internet Explorer uses the function fireEvent.
  • Firefox uses the function dispatchEvent.

The code will work in IE Agent and Firefox Agent playback. It is used in the gomez_top[0] window

{
var element = document.getElementById("mh_2link");
if ("fireEvent" in element)
element.fireEvent("onmouseover");
else{
var evt = document.createEvent("HTMLEvents");
evt.initEvent("mouseover", false, true);
element.dispatchEvent(evt);
}

 

Root Cause

  • The step action is not properly triggering the event

 

 

  • No labels