gwda

gwda 是一个用 Golang 实现的库,用于控制 iOS 和 iPadOS 设备,提供类似 Selenium 的操作功能,支持点击、滑动、应用管理等操作。

Check out gwda on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

项目说明用 Golang 实现 appium/WebDriverAgent 的客户端库,使得 Gopher 也可以编写代码来控制 iOS iPadOS 设备的各种操作。> 类似 tebeka/selenium 控制浏览器的操作行为#### 项目地址https://github.com/electricbubble/gwda#### 部分操作函数展示gopackage mainimport ("github.com/electricbubble/gwda""log")func main() {// var urlPrefix = "http://localhost:8100"// 该函数或许还需要 `iproxy 8100 8100` 先进行设备端口转发// driver, _ := gwda.NewDriver(nil, urlPrefix)// 通过 USB 直连设备driver, _ := gwda.NewUSBDriver(nil)x, y := 50, 256driver.Tap(x, y)driver.DoubleTap(x, y)driver.TouchAndHold(x, y)fromX, fromY, toX, toY := 50, 256, 100, 256driver.Drag(fromX, fromY, toX, toY)driver.Swipe(fromX, fromY, toX, toY)// 需要 3D Touch 硬件支持// driver.ForceTouch(x, y, 0.8)var bundleId = "com.apple.Preferences"driver.AppLaunchUnattached(bundleId)driver.AppDeactivate(2)driver.AppTerminate(bundleId)driver.AppActivate(bundleId)// 重置当前 App 的 相机📷 权限// driver.AppAuthReset(gwda.ProtectedResourceCamera)driver.SendKeys("hello")driver.SiriActivate("What's the weather like today")deviceInfo, _ := driver.DeviceInfo()log.Println(deviceInfo.Name)batteryInfo, _ := driver.BatteryInfo()log.Println(batteryInfo.State)windowSize, _ := driver.WindowSize()log.Println(windowSize)// driver.Homescreen()driver.PressButton(gwda.DeviceButtonHome)driver.PressButton(gwda.DeviceButtonVolumeUp)driver.PressButton(gwda.DeviceButtonVolumeDown)}

Latest Weekly Picks

make.ink favicon
Weekly Pick

Your AI tattoo generator for pro-grade concepts

Leo Wade
sellfy.com favicon
Weekly Pick

A code-free online store builder to turn views into revenue. Sell digital products, subscriptions, and merch, without fees or hassle.

Maris
www.videotoblog.ai favicon
Weekly Pick

Convert videos into awesome blog posts.

Video To Blog
www.sellerpic.ai favicon
Weekly Pick

SellerPic is the all-in-one AI design platform for e-commerce

SellerPic
fastimage.ai favicon
Weekly Pick

Fast Image AI instantly transforms your photos into stunning styles like Ghibli, Sketch, and Pixar. Effortlessly control image elements and create amazing effects with just one click.

Fast AI Team
linkedinpro.daisy.so favicon
Weekly Pick

AI-powered tool that transforms casual photos into professional LinkedIn headshots instantly. No photographer needed—just upload and download.

Gabriel
crevas.ai favicon
Weekly Pick

Crevas unifies Veo 3, Sora 2, Nano Banana and more into one intuitive canvas — so filmmakers can script, prompt, and generate cinematic stories without switching tools or losing consistency.

Spark Alpha
fotominiatur.com favicon
Weekly Pick

AI Foto Edit - Text to Image & Image Edit

foto miniatur