0

Hi I'm writing some XCTest in Swift for iOS 14.

Back in iOS 13 the springboard handled the call screen and you could end a call with

let app = XCUIApplication(bundleIdentifier: "com.apple.springboard")

app.buttons["End call"].firstMatch.tap()

However the springboard does not seem to contain the end call button for iOS 14! So how do you end a call in iOS 14?

sago92
  • 51
  • 6
  • hmm is there any button closing or ending the call ( i think it should be ) ? – zeytin Feb 04 '21 at 18:23
  • Yes there is, but i can't access it with the springboard application or my own application. it exists in some other application. – sago92 Feb 05 '21 at 11:28
  • i see then we should catch the like "end call" with accessibility identifier tool in xcode. Do you know how it is or should i drop an answer ? – zeytin Feb 05 '21 at 11:42

1 Answers1

0

You can try to inspect what application is displayed by reading Apple's Console application output. (Search for FBApplication)

Probably, you need to interact with the Phone application instead of Springboard

Bundle identifiers of iOS apps: https://github.com/rzakhar/XCTApps/blob/master/Sources/XCTApps/iOS.swift

Roman Zakharov
  • 2,185
  • 8
  • 19