I am trying to click a button using Selenium.
Below is the code
<button class="_11f5fc88e3dec7bfec55f7f49d581d78-scss _238c8d0c29802f43d5fb66614d042cfa-scss" title="Play" aria-label="Play" data-testid="play-button" style xpath="1">
I tried to do this by the css selector:
searchButton = browser.find_elements_by_css_selector('[class="_11f5fc88e3dec7bfec55f7f49d581d78-scss _238c8d0c29802f43d5fb66614d042cfa-scss"]').click()
MY ERROR: AttributeError: 'list' object has no attribute 'click'
Am I approaching this wrong? Im not understanding the error.
√icon.