I am using WKWebView and loading the webpage, I am accessing button and span with their id and able to add EventListener for example:
document.getElementById('btnPhoneCallClick').addEventListener('click', function () {window.webkit.messageHandlers.btnPhoneCallClick.postMessage('btnPhoneCallClick');});
But I am unable to do the same thing for Div and label of webpage.