Selenium жалуется, что флажок ввода типа неактивен (нажатие элемента перехвачено) - PullRequest
0 голосов
/ 10 июля 2020

Я пытаюсь снять этот флажок с помощью Selenium:

enter image description here

EDIT: per request, the relevant HTML code from the picture is the following:

 

с помощью этого кода (для каждого запроса, ОБНОВЛЕНО с добавлением еще трех строк) :

driver.find_element_by_xpath("//input[@type='file']").send_keys("my/file/path")
time.sleep(4) 
driver.find_element_by_xpath("//v-pane[contains(@id, 'permissions')]").click()
driver.find_element_by_xpath("//label[contains(@class, 'video-privacy-label')]//input[@type='checkbox']").click()

но в последней строке Selenium жалуется, что:

    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <input type="checkbox" ng-model="$ctrl.isVideoOrganization" ng-change="$ctrl.changeVideoPermissions()" aria-checked="true" class="ng-pristine ng-untouched ng-valid ng-not-empty" aria-invalid="false"> is not clickable at point (301, 731). Other element would receive the click: <div
class="video-edit-pane-content permissions-pane">...</div>

Как я могу снять этот флажок? Пользуюсь хромированной отверткой

...