title: About the Selenium getTitle() Method
body: <p>In some instances, the getTitle() method does not work for me.</p>
  
  <p>Take a look.</p>
  
  <pre><code>@Test
  public void testTitleReliability() {
  
      driver.get("https://www.google.com");
  
      boolean title = driver.getTitle() == "Google";
  
      if(title)
  
          System.out.println("I am working correctly");
  
      else if(!title)
  
          System.out.println("I am broken!");
  </code></pre>
  
  <p>However, it will work with this:</p>
  
  <pre><code>@Test
  public void testTitleReliability() {
  
      driver.get("https://www.google.com");
  
      boolean title = driver.getTitle().contains("Google");
  
      if(title)
  
          System.out.println("I am working correctly");
  
      else if(!title)
  
          System.out.println("I am broken!");
  </code></pre>
  
  <p>Anyone know why?</p>