Пишет ошибку
Код: Выделить всё
selenium.common.exceptions.ElementNotInteractableException: Message: Element could not be scrolled into view
inputs = browser.find_elements(By.XPATH, '//input')
for i in range(0,len(inputs)-1):
print(str(i)+" "+inputs.accessible_name+" "+inputs.aria_role)
choose = int(input())
if (inputs[choose].aria_role=="textbox"):
print("Введи текст")
inputs[choose].clear()
enterText=str(input())
inputs[choose].send_keys(enterText)
elif (inputs[choose].aria_role=="checkbox"):
inputs[choose].click()
elif (inputs[choose].aria_role=="radio"):
inputs[choose].click()
< /code>
Я проверяю тип ввода с помощью ARIA_ROLE, так что это не может быть другим типом ввода
Я также пытался подождать, чтобы загрузить все, ничего не помогает < /p>
Подробнее здесь: https://stackoverflow.com/questions/793 ... n-selenium