mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
refactor: simplify OCR APIs
This commit is contained in:
@@ -13,7 +13,7 @@ func TestSwipeUntil(t *testing.T) {
|
||||
var point PointF
|
||||
findApp := func(d *DriverExt) error {
|
||||
var err error
|
||||
point, err = d.GetTextXY("抖音")
|
||||
point, err = d.FindScreenTextByOCR("抖音")
|
||||
return err
|
||||
}
|
||||
foundAppAction := func(d *DriverExt) error {
|
||||
@@ -34,7 +34,7 @@ func TestSwipeUntil(t *testing.T) {
|
||||
|
||||
findLive := func(d *DriverExt) error {
|
||||
var err error
|
||||
point, err = d.GetTextXY("点击进入直播间")
|
||||
point, err = d.FindScreenTextByOCR("点击进入直播间")
|
||||
return err
|
||||
}
|
||||
foundLiveAction := func(d *DriverExt) error {
|
||||
|
||||
Reference in New Issue
Block a user