title: Find the button element for selenium Automation in python
body: <p>I have inspected the element and got the following code.<br />
  This button &quot;Activate&quot; appears only once in 4 hours. To run the process I need to find this element.</p>
  <p>I tried using:</p>
  <ol>
  <li><code>find_element_by_class_name</code></li>
  <li><code>find_element_by_link_text</code></li>
  </ol>
  <pre class="lang-html prettyprint-override"><code>&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;to run process&lt;/div&gt;&lt;/div&gt;
  &lt;/button&gt;
  &lt;/div&gt;
  </code></pre>