title: Unable to open Firefox browser with given URL - Selenium Webdriver & Java
body: <p>I have written the following selenium script which opens Gmail website. </p>
  
  <pre><code>import org.openqa.selenium.WebDriver; &lt;br&gt;
  import org.openqa.selenium.firefox.*;
  
  public class OpenGmail {
  
      /**
       * @param args
       */
      public void OpenGmailApp()
      {
          WebDriver webdriver = new FirefoxDriver();
          webdriver.get("gmail URL");
      }
      public static void main(String[] args) {
          OpenGmail ob = new OpenGmail();
          ob.OpenGmailApp();
      }
  }
  </code></pre>
  
  <p>When I execute the above script, I'm getting Firefox home page only. Its not gmail login page. Kindly guide what could be the error I made in that script.</p>