Remove space between classes in css selector:
driver.find_element_by_css_selector('.button .c_button .s_button').click()
# ^ ^
=>
driver.find_element_by_css_selector('.button.c_button.s_button').click()
More Related Contents:
- Python selenium: wait until element is clickable – not working
- Selenium “selenium.common.exceptions.NoSuchElementException” when using Chrome
- How can I scroll a web page using selenium webdriver in python?
- Python Windows Authentication username and password is not working
- Get HTML source of WebElement in Selenium WebDriver using Python
- Python Selenium wait for several elements to load
- find_element_by_* commands are deprecated in selenium
- Reducing size of pyinstaller exe
- How to use Selenium with Python?
- Selenium: FirefoxProfile exception Can’t load the profile
- How to get text of an element in Selenium WebDriver, without including child element text?
- How to extract info within a #shadow-root (open) using Selenium Python?
- How to download XML files avoiding the popup This type of file may harm your computer through ChromeDriver and Chrome using Selenium in Python
- ERROR:gpu_process_transport_factory.cc(1007)-Lost UI shared context : while initializing Chrome browser through ChromeDriver in Headless mode
- Using Extensions with Selenium (Python)
- How can I make sure if some HTML elements are loaded for Selenium + Python?
- Does anybody know how to identify shadow dom web elements using selenium webdriver?
- How do I set browser width and height in Selenium WebDriver?
- How to get rid of the infobar “Chrome is being controlled by automated test software” through Selenium
- ElementNotInteractableException: Message: element not interactable error while sending text to Email field on Quora using Selenium with Python
- How to change the User Agent using Selenium and Python
- Python & Selenium: Difference between driver.implicitly_wait() and time.sleep()
- “selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element” while clicking a ‘Next’ button with Selenium
- Finding elements by class name with Selenium in Python
- How to execute tests with selenium webdriver while browser is minimized
- Clear text from textarea with selenium
- Selenium – Python – AttributeError: ‘WebDriver’ object has no attribute ‘find_element_by_name’
- selenium webdriver upload file
- What is unittest in selenium Python?
- selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedriver.exe while opening chrome browser