MCPcopy
hub / github.com/mobile-next/mobile-mcp / wda

Method wda

src/iphone-simulator.ts:71–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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], {

Callers 13

getScreenshotMethod · 0.95
openUrlMethod · 0.95
getScreenSizeMethod · 0.95
sendKeysMethod · 0.95
swipeMethod · 0.95
swipeFromCoordinateMethod · 0.95
tapMethod · 0.95
doubleTapMethod · 0.95
longPressMethod · 0.95
pressButtonMethod · 0.95
getElementsOnScreenMethod · 0.95
setOrientationMethod · 0.95

Calls 2

isRunningMethod · 0.95
startWdaMethod · 0.95

Tested by

no test coverage detected