title: Pressing "F12" key directly through Selenium
body: <p>Below is my scenario :</p>
  
  <ol>
  <li>Open the URL (<a href="http://google.com" rel="nofollow noreferrer">http://google.com</a>)<br></li>
  <li>Press "F12" key</li>
  </ol>
  
  <p>I have tried below lines of code :</p>
  
  <pre><code>public static void main(String[] args) throws InterruptedException {
  
      WebDriver driver=new FirefoxDriver();
      driver.manage().window().maximize();
      driver.get("http://google.com");
  
      String CurrentURL= driver.getCurrentUrl();
      System.out.println("Current URL is : " + CurrentURL);
  
      Actions action = new Actions(driver);
      action.sendKeys(Keys.F12);
  
      System.out.println("successfuly pressed key F12");
      driver.close();
  }
  </code></pre>
  
  <p>It is printing "successfuly pressed key F12" on the console. But, I don't see 'F12' being pressed on website.</p>
  
  <p>Please can anyone help me out of this ?</p>
  
  <p>Thanks in advance.</p>