title: Can't select button to click on it using selenium
body: <p>I am a newbie in selenium, and I got stock when I want to click the button with the next html code :</p>
  <pre><code>&lt;div class=&quot;mb-8&quot;&gt;
   &lt;div class=&quot;wrapper&quot;&gt;
    &lt;button class=&quot;w-full h-14 pt-2 pb-1 px-3 bg-accent text-dark-1 rounded-full md:rounded select-none cursor-pointer md:hover:shadow-big focus:outline-none md:focus:bg-accent-2 md:focus:shadow-small &quot;&gt;
      &lt;div class=&quot;font-medium&quot;&gt;
      &lt;div class=&quot;text-17 md:text-18 md:font-bold leading-18&quot;&gt;Activate&lt;/div&gt; 
      &lt;div class=&quot;text-13 md:text-12 font-normal md:font-medium leading-normal&quot;&gt;Mining 4 hours&lt;/div&gt;
      &lt;/div&gt;
    &lt;/button&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>This is what I tryed :</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait
  import time
  driver = webdriver.Chrome(&quot;chromedriver.exe&quot;)
  driver.get(&quot;https://link&quot;)
  search = driver.find_element_by_id(&quot;email&quot;)
  search.clear()
  search.send_keys(&quot;username&quot;)
  search = driver.find_element_by_id(&quot;password&quot;)
  search.clear()
  search.send_keys(&quot;password&quot;)
  search.send_keys(Keys.RETURN)
  time.sleep(3)
  link= driver.find_element_by_link_text(&quot;Miner&quot;)
  link.click()
  time.sleep(3)
  link= driver.find_element_by_class_name(&quot;w-full h-14 pt-2 pb-1 px-3 bg-accent text-dark-1 rounded-full md:rounded select-none cursor-pointer md:hover:shadow-big focus:outline-none md:focus:bg-accent-2 md:focus:shadow-small &quot;)
  </code></pre>
  <p>Got this:</p>
  <pre><code>InvalidSelectorException: invalid selector: An invalid or illegal selector was specified
    (Session info: chrome=88.0.4324.182)
  </code></pre>
  <pre><code>link=driver.find_element_by_css_selector(&quot;w-full h-14 pt-2 pb-1 px-3 bg-accent text-dark-1 rounded-full md:rounded select-none cursor-pointer md:hover:shadow-big focus:outline-none md:focus:bg-accent-2 md:focus:shadow-small &quot;)
  </code></pre>
  <p>Same error.
  Tryed also this (because of the info in the image)</p>
  <p><a href="https://i.stack.imgur.com/iTlUH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iTlUH.png" alt="enter image description here" /></a></p>
  <pre><code>link=driver.find_element_by_css_selector(&quot;.w-full.h-14.pt-2.pb-1.px-3.bg-accent.text-dark-1.rounded-full.md\:rounded.select-none.cursor-pointer.md\:hover\:shadow-big.focus\:outline-none.md\:focus\:bg-accent-2.md\:focus\:shadow-small.&quot;)
  </code></pre>
  <p>Same error.
  Tryed this also:</p>
  <pre><code>link= driver.find_element_by_class_name(&quot;Activate&quot;)
  </code></pre>
  <p>Got this :</p>
  <pre><code>NoSuchElementException: no such element: Unable to locate element: {&quot;method&quot;:&quot;css selector&quot;,&quot;selector&quot;:&quot;.Activate&quot;}
    (Session info: chrome=88.0.4324.182)
  </code></pre>
  <p>Thank you for your help !!!</p>