how to switch back to previous window in selenium webdriver
<p>I want to go back to previous page but I cant go back. please help me.I used this code</p>

<pre><code>driver.switchto().primary();

driver.switchtodefault();

driver.switchtoFrame("Frame_Main");
</code></pre>