I can't find an element and get an error, but I actually see it when inspecting the element, but if I "print" driver.page_source I can't see it.
def screenname():
driver.find_element(By.XPATH, '//*[@id="indium_view_form_BooleanCheckBox_1"]').click()
screenname()
#also tried ID and CSS Selector
#THE CODE I SEE FROM INSPECTING THE ELEMENT
#<input name="nameTransposition" type="checkbox" role="checkbox" aria-checked="false" class="dijitReset dijitCheckBoxInput" data-dojo-attach-point="focusNode" data-dojo-attach-event="ondijitclick:_onClick" value="on" tabindex="0" id="indium_view_form_BooleanCheckBox_1" style="user-select: none;">
This is the error I get
#selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="indium_view_form_BooleanCheckBox_1"]"}
Click on the element