mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
update: fucntion call
This commit is contained in:
@@ -57,7 +57,7 @@ func (dExt *XTDriver) TapByCV(opts ...option.ActionOption) error {
|
||||
return dExt.TapAbsXY(point.X, point.Y, opts...)
|
||||
}
|
||||
|
||||
func (dExt *XTDriver) RightClickByOCR(ocrText string, opts ...option.ActionOption) error {
|
||||
func (dExt *XTDriver) SecondaryClickByOCR(ocrText string, opts ...option.ActionOption) error {
|
||||
actionOptions := option.NewActionOptions(opts...)
|
||||
point, err := dExt.FindScreenText(ocrText, opts...)
|
||||
if err != nil {
|
||||
@@ -66,5 +66,5 @@ func (dExt *XTDriver) RightClickByOCR(ocrText string, opts ...option.ActionOptio
|
||||
}
|
||||
return err
|
||||
}
|
||||
return dExt.IDriver.(*BrowserDriver).RightClick(point.Center().X, point.Center().Y)
|
||||
return dExt.SecondaryClick(point.Center().X, point.Center().Y)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user