title: By.className("classname") and By.cssSelector("[class = 'classname']") returns different number of elements in selenium
body: <p>I am learning Selenium and came across an issue where I see that By.cssSelector("[class = 'day']") and By.className("day") are returning different number of elements even though both are the same.</p>
  
  <p>I see that when I use By.className("day"), the disabled dates in the calendar are also selected when ideally it should not as the class name for those disabled dates is "old day"  not "day".</p>
  
  <p>driver.get("<a href="https://www.path2usa.com/travel-companions" rel="nofollow noreferrer">https://www.path2usa.com/travel-companions</a>");</p>
  
  <p>driver.findElement(By.name("travel_date")).click();</p>
  
  <p>List elements = driver.findElements(By.cssSelector("[class 
     'day']"));</p>
  
  <p>List elements1 = driver.findElements(By.className("day"));</p>
  
  <p>System.out.println(elements.size());</p>
  
  <p>System.out.println(elements1.size());</p>
  
  <p>Expected: 30 elements should be returned.
  Actual:
  With Css selector - I can see 30 but with Classname - I see 42.</p>