'Cant click in chrome://settings/handlers python selenium
https://i.stack.imgur.com/fQ5Vy.png
i want to click the dont allow sites to handle protocols radio button
but i cant click please help
code
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
import time
from selenium.webdriver.common.by import By
s = Service('C:\Program Files (x86)\chromedriver.exe')
driver = webdriver.Chrome(service=s)
driver.get("chrome://settings/handlers")
time.sleep(3)
driver.find_element(By.XPATH, '//*[@id="button"]/div[1]').click()
Error: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="button"]/div[1]"} (Session info: chrome=100.0.4896.75)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
