console.log(1) console.log(999999) import wda from 'wda-driver-tt' function sleep(time: number | undefined) { return new Promise((reslove) => { setTimeout(() => { reslove(1); }, time); }); } async function test(){ const c = new wda.Client('http://localhost:8100') console.log(await c.status()) // c.home() // const source = await c.source() // format XML // const source = await c.source('json', true) // default false, format JSON // await c.screenshot('screen.png') const s = await c.session('com.apple.Health') s.launch('com.apple.Health') await sleep(1000) s.tap(178,575) c.home() s.launch('com.zhiliaoapp.musically') // await s.orientation() // s.close() // await c.screenshot() console.log(9999) } test()