Forum Discussion

geneticmaterial's avatar
geneticmaterial
Contributor
3 years ago

Capturing addEventListener details

Hi

Can anyone point me in the right direction to capture the event's details that runs on the browser when a specific action occurs?

In one example we trigger an event on our site when we populate a textfield and then navigate away from it.
I have tried using a script and running a script routine immediately after the even should have been triggered on the site at runtime.

function Test()
{
var browser = Sys.Browser("*")
var page = browser.Page("*").contentDocument
page.addEventListener("form_field_complete", function (e) {
Log.Message('Adobe event '.concat(e.type));
Log.Message(e.detail);
});
}

The test does pass but nothing is logged out.

 

Do I need to run this script somehow via events instead of script routine?

 

Any help greatly appreciated.

Dan

10 Replies