I'm using selenium to click on a button and the HTML code for the button is like:
div class="_1WZqU PNlAR" role="button">Join group</div
I tried with all possible solution:
driver.find_element_by_css_selector('._1WZqU.PNlAR').click()
driver.find_element_by_css_selector('_1WZqU PNlAR').click()
But its throwing an error no such element: Unable to locate element: {"method":"css selector","selector":"._1WZqU.PNlAR"}