Detect non-navigation button click in WKWebView : <p>I have loaded a webpage into a <code>WKWebView</code>.  I want to detect when the user clicks this specific button.</p>

<pre><code>&lt;div class="compacted-item"&gt;
    &lt;button class="btn btn-lg btn-primary deploy-button" data-ember-action="1361"&gt;
        Deploy
    &lt;/button&gt;
&lt;/div&gt;
</code></pre>

<p><code>decidePolicyFor navigationAction</code> isn't triggered because it's not a navigation action.  </p>

<p>I know how to add a js message handler to the web views user content controller, but since I don't own the webpage, how do I get it to send off a message for me to intercept?  Such as:</p>

<pre><code>window.webkit.messageHandlers.buttonClicked.postMessage(messageToPost);
</code></pre>

<p>Or is there another way to detect non-navigation button clicks in a <code>WKWebView</code>?</p>
