Checkbox using xpath not accessible Checkbox using xpath not accessible selenium selenium

Checkbox using xpath not accessible


You got it correct the element is inside iframe you need to switch it first.

Induce WebDriverWait() and wait for frame_to_be_available_and_switch_to_it()Induce WebDriverWait() and wait for element_to_be_clickable()

WebDriverWait(driver, 10).until(EC.frame_to_be_available_and_switch_to_it((By.CSS_SELECTOR, "iframe#embeddedIframe")))  WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "//td[.//label[contains(., 'Cooperative Agreement')]]/input[1]"))).click()#Jump out from iframedriver.switch_to.default_content()

You need to import below libraries.

from selenium.webdriver.common.by import Byfrom selenium.webdriver.support.ui import WebDriverWaitfrom selenium.webdriver.support import expected_conditions as EC