How to close the browser in selenium using Hot Keys?
<blockquote>
  <p>Selenium Webdriver v-3.0.1</p>
</blockquote>

<p>I want to close the browser window using hot keys, I have tried following methods one by one but not working at all -</p>

<pre><code>driver.findElement(By.tagName("body")).sendKeys(Keys.chord(Keys.CONTROL+"w"));

driver.findElement(By.tagName("body")).sendKeys(Keys.chord(Keys.CONTROL+"F4"));

driver.findElement(By.tagName("body")).sendKeys(Keys.chord(Keys.CONTROL,Keys.F4));

driver.findElement(By.tagName("body")).sendKeys(Keys.CONTROL, Keys.F4);

driver.findElement(By.tagName("body")).sendKeys(Keys.CONTROL+"F4");
</code></pre>

<p>How do I close browser other then <code>driver.close()</code> and <code>driver.quit</code> method</p>