(function() { "use strict"; require.config({ paths: { CerosSDK: '//sdk.ceros.com/standalone-player-sdk-v5.min' } }); require(['CerosSDK'], function (CerosSDK) { CerosSDK.findExperience() .done(function(experience) { var fireResults = experience.findComponentsByTag("fire-results") var resultsButton = experience.findComponentsByTag("results-button") var componentClickedCallback = function(component){ setTimeout(function(){ resultsButton.click(); console.log("clicked") }, 2000); } fireResults.on(CerosSDK.EVENTS.CLICKED, componentClickedCallback) }) }); })();