()
| 69 | } |
| 70 | |
| 71 | private async wda(): Promise<WebDriverAgent> { |
| 72 | const wda = new WebDriverAgent("localhost", WDA_PORT); |
| 73 | |
| 74 | if (!(await wda.isRunning())) { |
| 75 | await this.startWda(); |
| 76 | if (!(await wda.isRunning())) { |
| 77 | throw new ActionableError("WebDriverAgent is not running on simulator, please see https://github.com/mobile-next/mobile-mcp/wiki/"); |
| 78 | } |
| 79 | |
| 80 | // was successfully started |
| 81 | } |
| 82 | |
| 83 | return wda; |
| 84 | } |
| 85 | |
| 86 | private simctl(...args: string[]): Buffer { |
| 87 | return execFileSync("xcrun", ["simctl", ...args], { |
no test coverage detected