ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

RBM script (which includes Java Script) executes to completion on the Cloud Monitor Recorder. But in ASM, it stops partially through with no visible error.


Article ID: 8190


Updated On:


CA App Synthetic Monitor


 We have a RBM script which runs successfully in the Cloud Monitor Recorder.

 However, when deploying the script to ASM, it always stops at the same point as seen in the waterfall report.  Also, it does not report any error. The step that should be executed next contains Java Script.


The RBM monitor environment in ASM runs Firefox and supports Firefox features that are valid up until Firefox 37.

The Java script in this case was using the Node.innerText property, not available until Firefox 45.


RBM script using ASM 8.7 (or earlier)


Modify the Java script in the RBM script not to use the Node.innerText property e.g. change

document.getElementById("firstPosition").value = document.getElementsByName("frmPwd")[0].getElementsByTagName("label")[0].innerText.replace(/[^0-9]+/, "");


document.getElementById("firstPosition").value = document.getElementsByName("frmPwd")[0].getElementsByTagName("label")[0].textContent.replace(/[^0-9]+/, "");