Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13891

Cannot get button element of Website in python

$
0
0

I am using the Selenium api i python and trying to get a button element of a website. The element is this: Chat.

My code: button = driver.find_elements(By.CSS_SELECTOR(".flex-grow block w-full rounded-l-md border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-600 sm:leading-6")).

I tried to use CSS_SELECTOR on both the element's class and type. But both don't work. They give me the error: 'str' object is not callable


Viewing all articles
Browse latest Browse all 13891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>