implement TapByUITypes using WithScreenShotUITypes

This commit is contained in:
buyuxiang
2023-08-25 14:33:13 +08:00
parent 30da13891e
commit 4dace0f589
7 changed files with 194 additions and 213 deletions
+1 -2
View File
@@ -127,10 +127,9 @@ func (s *StepMobile) TapByCV(imagePath string, options ...uixt.ActionOption) *St
}
// TapByUITypes taps on the target element specified by uiTypes, the higher the uiTypes, the higher the priority
func (s *StepMobile) TapByUITypes(uiTypes []string, options ...uixt.ActionOption) *StepMobile {
func (s *StepMobile) TapByUITypes(options ...uixt.ActionOption) *StepMobile {
action := uixt.MobileAction{
Method: uixt.ACTION_TapByCV,
Params: uiTypes,
Options: uixt.NewActionOptions(options...),
}