title: Selenium Java Webdriver Selecting Historical Tab
body: <p>I am working on a public site.
  <a href="http://preview.harriscountyfws.org/" rel="nofollow">http://preview.harriscountyfws.org/</a></p>
  
  <p>Having trouble with the most basic thing.
  Tried to select Historical tab that is on the page using the code below:</p>
  
  <pre><code>    JFrame frame = new JFrame();
      frame.setAlwaysOnTop(true);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.setVisible(true);
      frame.setVisible(false);
  
  
      // Optional, if not specified, WebDriver will search your path for chromedriver.
      System.setProperty("webdriver.chrome.driver", "C:\\ChromeDriver\\chromedriver.exe");
      WebDriver driver = new ChromeDriver();
      driver.get("http://preview.harriscountyfws.org/");
  
  
  
      driver.manage().window().maximize();
  
          WebElement tabHistorical;
          tabHistorical = driver.findElement(By.cssSelector("k-item.k-state-default.k-last.k-tab-on-top.k-state-active"));
          tabHistorical.click();
  </code></pre>
  
  <p>Exception says no such element.
  I don't see why.
  Please go to site and press F12.  Element is there.</p>