How to handle onblur event with selenium webdriver
<p>I have an onblur event which I need to trigger when I click away. 
I am using js as</p>

<pre><code>((JavascriptExecutor)getDriverProvider().executeScript("document.getElementByXpath('xpath here').onblur();");
</code></pre>

<p>but this doesn't work. Can anyone suggest how to handle this case? </p>