Xcode UI testing - Uiviews added with addSubview are completely invisible to the UI tests

前端 未结 2 1405
南旧
南旧 2021-02-10 19:37

I\'ve been giving a try to the new UI tests on XCode 7.3 and I\'ve found what it seems a bug to me.

The problem is that views added through the \"addSubview\" m

相关标签:
2条回答
  • 2021-02-10 19:45

    Hello I craete a sample project with tableView and your container

    and add container to tableView

    Try this example :)

    app.tables.staticTexts["labelIdentifier"]

    0 讨论(0)
  • 2021-02-10 20:07

    Have you trying Xcode recording to get that view ? Just record and press on your view it should works

    Also make sure that this UILabel is not outbounds "you can inspect using Xcode"

    0 讨论(0)
提交回复
热议问题