feat: swipe with identifier for logging

This commit is contained in:
debugtalk
2022-09-21 13:09:08 +08:00
parent c3c0ee2f60
commit 0f1206427e
7 changed files with 73 additions and 160 deletions
+4 -6
View File
@@ -8,12 +8,10 @@ import (
func (dExt *DriverExt) tapFloat(x, y float64, identifier string) error {
if len(identifier) > 0 {
option := gwda.DataOption{
"log": map[string]interface{}{
"enable": true,
"data": identifier,
},
}
option := gwda.WithCustomOption("log", map[string]interface{}{
"enable": true,
"data": identifier,
})
return dExt.WebDriver.TapFloat(x, y, option)
}
return dExt.WebDriver.TapFloat(x, y)