Information:

Environment

  • Dynatrace Recorder

 

Symptoms

When you record a script in the Dynatrace Recorder, you need to find the right element that is embedded in a frame.

Solution

Use the following code in a Custom action.

var loc = new Locator();
var currentWin = loc.findFrame('gomez_top[0]');
var frames = external.getFrames(currentWin)

for (var i=0;i<frames.count();i++)

{
if (frames.get(i).document.getElementById("zipCode") !=null)

  {
  newWindow = "gomez_top[0].frames["+i+"]";
  }
}

 

 

 

 

  • No labels