简体   繁体   English

Selenium.common.exceptions.ElementNotInteractableException:消息:元素在离子框架中不可交互

[英]Selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable in ionic framework

Python script:蟒蛇脚本:

userId_box =driver.find_element_by_id("userId")
userId_box.send_keys(usr)

Inspect element:检查元素:

<ion-input class="passwordinput sc-ion-input-md-h sc-ion-input-md-s md hydrated" placeholder="User ID" id="userId" type="text" value=""><ion-icon class="eye md hydrated" role="img"></ion-icon><input class="native-input sc-ion-input-md" aria-labelledby="ion-input-0-lbl" autocapitalize="off" autocomplete="off" autocorrect="off" maxlength="3" name="ion-input-0" placeholder="User ID" type="text"></ion-input>

Error:错误:

selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable selenium.common.exceptions.ElementNotInteractableException:消息:元素不可交互

  1. You can try explicit wait您可以尝试显式等待
  2. Sometimes pausing the program also helps有时暂停程序也有帮助
  3. Sometimes the element is not in view and you have to scroll to the element in order to interact with the element.有时元素不在视图中,您必须滚动到元素才能与元素交互。 You can also try that using JavascriptExecutor您也可以尝试使用 JavascriptExecutor

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 发现 selenium.common.exceptions.ElementNotInteractableException:消息:元素不可交互 - Found selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable 错误是“selenium.common.exceptions.ElementNotInteractableException:消息:元素不可交互” - error is “selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable” 网页抓取:selenium.common.exceptions.ElementNotInteractableException:消息:元素不可交互 - Webscraping: selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable selenium.common.exceptions.ElementNotInteractableException:消息:使用Selenium和Python插入值时元素不可交互 - selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable while inserting value using Selenium and Python 获取 Selenium 错误 - selenium.common.exceptions.ElementNotInteractableException:消息:元素不可交互 - Getting Selenium Error - selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable selenium.common.exceptions.ElementNotInteractableException:消息:使用 Selenium 和 Python 与元素交互时元素不可交互 - selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable while interacting with element using Selenium and Python 随机我收到错误:“selenium.common.exceptions.ElementNotInteractableException:消息:元素不可交互:元素大小为零” - Randomly I get the error: “selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable: element has zero size” 硒错误即“selenium.common.exceptions.ElementNotInteractableException:消息:元素不可交互” - Selenium error namely 'selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable' Selenium 自动化测试错误:selenium.common.exceptions.ElementNotInteractableException:消息:元素不可交互 - Selenium automated testing error: selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable selenium.common.exceptions.ElementNotInteractableException:消息:将文本发送到 contenteditable div 元素时元素不可交互 - selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable while sending text to contenteditable div element
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM