我用最新的铬和chromedriver.
我有一个网站,与DOM元和我将任何类型的文本,在上传提示,
HTML代码 (对不起截)
代码:
#扩大的阴影
def expand_shadow_element(元件):
shadow_root=驱动程序。execute_script('返回的论点[0].shadowRoot.孩子们,元素)
回shadow_root
...
root1=驱动程序。find_element_by_id("UI-tf_Vorgangsname")
shadow_root1=expand_shadow_element(root1)
root2=shadow_root11.find_element_by_xpath("//input[@部='value']")
时间。睡眠(2)
root2.点击()
时间。睡眠(2)
root2.send_keys('testssdfs')
我成为这个消息:
硒。常见的。例外情况。ElementNotInteractableException:信息:元素不是可以通过键盘