title: Click a aria-label element using xpath
body: <p>I am unable to click a button using Xpath and Selenium, in this case the aria-label has a unique date which make it perfect to distinguish among some other buttons from a calendar.</p>
  
  <blockquote>
    <p>This is the HTML code for the button that display the day 5 and the
    price for that day.</p>
  </blockquote>
  
  <hr>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button type="button" class="CalendarDay__button" aria-label="Choose sunday, february 4 2018 as your check-in date. It's available." tabindex="0"&gt;&lt;div class="calendar-day"&gt;&lt;div class="day"&gt;4&lt;/div&gt;&lt;div class="flybondi font-p fare-price"&gt;&lt;span&gt;$728*&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/button&gt;
  &lt;button type="button" class="CalendarDay__button" aria-label="Choose monday, february 5 2018 as your check-in date. It's available." tabindex="0"&gt;&lt;div class="calendar-day"&gt;&lt;div class="day"&gt;5&lt;/div&gt;&lt;div class="flybondi font-p fare-price"&gt;&lt;span&gt;$728*&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <hr>
  
  <p>#Let say I want to click february 5 2018, I tried </p>
  
  <pre><code>dtd0_button = driver.find_element_by_xpath("//button[contains(@class, 'CalendarDay__button') and (@aria-label, 'Choose monday, February 5 2018 as your check-in date. It's available') ]")
  dtd0_button.Click()
  </code></pre>
  
  <p>what is wrong with this approach and I receive the following message 'WebElement' object has no attribute 'Click' if I can Click for any date in the calendar on the web page.</p>