У меня здесь есть этот маленький переключатель, мне нужно его выключить, если он включен
This is how the html look like when it's on:
The inner div is for the white circle inside the green, but i can click wherever under the green square.
I usually use CroPath for finding the XPath so I get this:
Usually, I always use
driver.find_element(By.XPATH,path).click()
For clicking buttons and it always work, but for this one I have use the XPath and CSS selector to find the element and it didn't work. Any idea how I can click this toggle?
For reference, this is how the button looks like when it's off and the html behind it:
введите описание изображения здесь