【问题标题】:Interactions are not available for this element in AppiumAppium 中的此元素无法进行交互
【发布时间】:2019-03-17 09:25:10
【问题描述】:

我在识别“Appium”中突出显示的元素时收到以下消息。

Appium: 1.7.1 设备: iPhone X(12.0 和模拟器) Java 客户端: 1.6.1 Xcode: V 10

  • 交互不适用于此元素。

Appium- IOS

旨在使用 .gettext() 方法读取元素的内容。

使用的逻辑。

// 显式等待 30 秒。

return driver.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(WebElement))).getText();

使用了 WebElement。

1, /XCUIElementTypeApplication[@name="Event Manager"]/XCUIElementTypeWindow1/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther p>

2, //XCUIElementTypeOther[3]/XCUIElementTypeOther

以上都不会返回图像中的文本。也没有抛出异常/错误。

还有什么可以帮助阅读网页元素的吗?

【问题讨论】:

    标签: appium appium-ios


    【解决方案1】:

    我面临同样的问题,即在执行测试用例时无法点击具有某种号召性用语的图标。这些在我捕获时很容易识别,但如果在脚本中尝试相同,katalon 将无法找到它。

    【讨论】:

      猜你喜欢
      • 2019-04-27
      • 2018-09-21
      • 1970-01-01
      • 2021-12-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-27
      • 2021-01-20
      • 1970-01-01
      相关资源
      最近更新 更多