feat: add browser driver

This commit is contained in:
huangbin.beal@163.com
2025-02-19 20:33:21 +08:00
parent 1b18976620
commit e3d4cbf281
10 changed files with 1526 additions and 2 deletions

View File

@@ -66,6 +66,12 @@ func GetDevice(c *gin.Context) (device uixt.IDevice, err error) {
RenderErrorInitDriver(c, err)
return
}
case "browser":
device, err = uixt.NewBrowserDevice(uixt.WithBrowserId(serial))
if err != nil {
RenderErrorInitDriver(c, err)
return
}
default:
err = fmt.Errorf("[%s]: invalid platform", c.HandlerName())
return