title: Navigating to a URL using webdriver
body: <p>I made a new setup of selenium web-driver for Java on a machine and added all the required jars. Also I installed the Firefox browser on the machine.</p>
  
  <p>However, when I ran a simple Java test script the web-driver opened a Firefox browser but failed to navigate to the URL. When I set the Firefox profile it navigated to the URL. What could be the reason for this? I have a proxy server. Is it because of absence of default Firefox profile?</p>
  
  <pre class="lang-java prettyprint-override"><code>public class TestClass {    
      public static void main(String[] args) {
          String baseUrl = "google.com";;
          WebDriver driver = new FirefoxDriver(); 
          driver.get(baseUrl); 
          driver.manage().window().maximize();
          String actualTitle = driver.getTitle();
          String expectedTitle = "Google";
          if(actualTitle.contentEquals(expectedTitle)) {
              System.out.println("Test case passed!!!");
          }
          else { 
              System.out.println("Test case failed......");
              System.out.println(actualTitle);
          }
          driver.quit(); 
      }
  }
  </code></pre>