Javascript – Why is the code not waiting for the listener to complete?
I am trying to wait for the listener to listen to all messages before moving on to console.log("Done") using await but it is not happening. What am I missing. const f = async (leftPaneRowEle,index) => { leftPaneRowEle.scrollIntoView() leftPaneRowEle.children[0].click() console.log('downloadBtn clicked…