When/Why/Should a "Test Run" give a different result than a DEBUG run?

#1

I have a web app which requires me to use an Execute JavaScript to manage a control.
this command works under the DOM console
this command works for DEBUG
this command fails under “test run”

document.frames[0].document.getElementById(‘templates-list-container’).lastChild.click();

assistEdge 17.5.2

#2

Hi,

The only difference while running in debug mode is that the execution is a bit delayed and user is able to visualize while activity execution is currently in progress.

In case you are facing issue while doing test run then try putting a delay activity with 3 sec before Java Script executor activity (which in your case is failing)

#3

The delay worked perfectly
TY