How to clear history in browser by using selenium webDriver? : <p>Actually I am using code as shown bellow but, I am getting error like.History.clear is not a function. Build info: version: '2.53.0', revision: '35ae25b', Can anyone help me out. What is the problem in this code?</p>

<pre><code>JavascriptExecutor js=(JavascriptExecutor) driver;
            js.executeScript("History.clear();");
</code></pre>

<p>Thanks,
Nagaraj Ediger.</p>
