title: Check if a table exists or not
body: <p>When I click on a link, it opens up a page which will have either on the below tables.</p>
  
  <pre><code>page 1 : html/body/table[1]/tbody/tr/td[2]/div[3]/form/table[2]/tbody....
  
  Page 2 : html/body/table[1]/tbody/tr/td[2]/div[3]/form/table/tbody.....
  </code></pre>
  
  <p>I want to find out which table is loaded and make a decision. If the first page is loaded, then it goes to the loop, where as if the second page is loaded, it doesn't go to the else loop. </p>
  
  <pre><code>if(driver.findElement(By.xpath(xpath of page 1)).isDisplayed()){
      System.out.println("is present");
  }else {
      System.out.println("not");
  }
  </code></pre>
  
  <p>How do i handle this? </p>