mardi 10 juillet 2018

Uitest refresh control swift

I am trying to add uitest for refresh control but I could not have done it because of I can't get access to refresh control with accessibility identifier (refreshControl.accessibilityIdentifier = "refreshControlList")

launchAppWithArgs(json: OrdersResultJSON.ok, xcuiApp: app)

    let table = app.tables["agendaTable"]

    DispatchQueue.main.async {
        table.otherElements["sectionHeader0"].press(forDuration: 2, thenDragTo: table.otherElements["sectionHeader2"])
    }

    if !table.otherElements[""].waitForExistence(timeout: 6) {
        print("XXX")
    }

Any suggestion to test it??

Aucun commentaire:

Enregistrer un commentaire