title: Python selenium chrome unable to click login button
body: <p>I tried to click on those login button but fail with xpath and css.</p>
  <pre><code>&lt;div id=&quot;WsopApp&quot;&gt;
      &lt;div id=&quot;PokerApp&quot; class=&quot;&quot;&gt;
          &lt;div class=&quot;login-popup&quot;&gt;
              &lt;div class=&quot;login-services-container&quot;&gt;
                  &lt;button class=&quot;btn-social btn-facebook&quot; data-qaid=&quot;signInFacebook&quot;&gt;
                      &lt;svg stroke=&quot;currentColor&quot; fill=&quot;currentColor&quot; stroke-width=&quot;0&quot; viewBox=&quot;0 0 320 512&quot; height=&quot;1em&quot; width=&quot;1em&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;
                          &lt;path d=&quot;M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z&quot;&gt;
                          &lt;/path&gt;
                      &lt;/svg&gt;Sign in with Facebook
                  &lt;/button&gt;
                  &lt;button class=&quot;btn-social btn-google&quot; data-qaid=&quot;signInGoogle&quot;&gt;
                      &lt;svg stroke=&quot;currentColor&quot; fill=&quot;currentColor&quot; stroke-width=&quot;0&quot; viewBox=&quot;0 0 640 512&quot; height=&quot;1em&quot; width=&quot;1em&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;
                          &lt;path d=&quot;M386.061 228.496c1.834 9.692 3.143 19.384 3.143 31.956C389.204 370.205 315.599 448 204.8 448c-106.084 0-192-85.915-192-192s85.916-192 192-192c51.864 0 95.083 18.859 128.611 50.292l-52.126 50.03c-14.145-13.621-39.028-29.599-76.485-29.599-65.484 0-118.92 54.221-118.92 121.277 0 67.056 53.436 121.277 118.92 121.277 75.961 0 104.513-54.745 108.965-82.773H204.8v-66.009h181.261zm185.406 6.437V179.2h-56.001v55.733h-55.733v56.001h55.733v55.733h56.001v-55.733H627.2v-56.001h-55.733z&quot;&gt;
                          &lt;/path&gt;
                      &lt;/svg&gt;Sign in with Google
                  &lt;/button&gt;
                  &lt;button class=&quot;btn-social btn-one-connect&quot; data-qaid=&quot;signInOneConnect&quot;&gt;
                      &lt;svg stroke=&quot;currentColor&quot; fill=&quot;currentColor&quot; stroke-width=&quot;0&quot; viewBox=&quot;0 0 512 512&quot; height=&quot;1em&quot; width=&quot;1em&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;
                          &lt;path d=&quot;M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z&quot;&gt;
                          &lt;/path&gt;
                      &lt;/svg&gt;Sign in with Email
                  &lt;/button&gt;
              &lt;/div&gt;
  </code></pre>
  <p>Here my code with css</p>
  <pre><code>driver.find_element_by_css_selector('#PokerApp &gt; div.login-popup &gt; div.login-services-container &gt; button.btn-social.btn-one-connect &gt; svg &gt; path').click()
  </code></pre>
  <p>And with xpath:</p>
  <pre><code>driver.get(&quot;https://playwsop.com/play&quot;)
  time.sleep(15)
  driver.find_element_by_xpath(&quot;//button[@data-qaid='signInOneConnect']&quot;)
  </code></pre>
  <p>Here is the page:</p>
  <pre><code>https://playwsop.com/play
  </code></pre>
  <p>Here is my error:</p>
  <pre><code>selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {&quot;method&quot;:&quot;xpath&quot;,&quot;selector&quot;:&quot;//button[@data-qaid='signInOneConnect']&quot;}   (Session info: chrome=90.0.4430.72) 
  </code></pre>