【问题标题】:Whats the cause for the error :org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement:错误的原因是什么:org.openqa.selenium.WebDriverException:返回值无法转换为 WebElement:
【发布时间】:2020-02-08 11:51:07
【问题描述】:

谁能帮我解决这个错误:

“org.openqa.selenium.WebDriverException:返回值无法转换为WebElement:”

似乎这个问题在大多数版本中都存在。我有以下版本,当我尝试通过切换到 webview 来自动化 android 应用程序时发生错误。

  • Appium :1.14
  • Java 客户端:7.2
  • java版本“1.8.0_221”
  • java 客户端 7.2 中的 selenium 版本是 3.141

【问题讨论】:

    标签: appium appium-android


    【解决方案1】:

    这意味着,例如,您尝试sendKeys 到一个没有文本字段的元素,或者您尝试单击不可点击的元素等。这种行为有很多可能性。您最好粘贴引发此类异常的代码

    【讨论】:

      猜你喜欢
      • 2019-06-15
      • 2018-11-01
      • 1970-01-01
      • 2019-01-29
      • 1970-01-01
      • 2015-01-26
      • 2015-04-19
      • 1970-01-01
      相关资源
      最近更新 更多