MCPcopy
hub / github.com/httprunner/httprunner / WithCustomDirection

Function WithCustomDirection

hrp/pkg/uixt/action.go:358–362  ·  view source on GitHub ↗

WithCustomDirection inputs sx, sy, ex, ey

(sx, sy, ex, ey float64)

Source from the content-addressed store, hash-verified

356
357// WithCustomDirection inputs sx, sy, ex, ey
358func WithCustomDirection(sx, sy, ex, ey float64) ActionOption {
359 return func(o *ActionOptions) {
360 o.Direction = []float64{sx, sy, ex, ey}
361 }
362}
363
364// WithScope inputs area of [(x1,y1), (x2,y2)]
365// x1, y1, x2, y2 are all in [0, 1], which means the relative position of the screen

Callers 6

TestIOSDouyinFollowLiveFunction · 0.92
TestAndroidExpertTestFunction · 0.92
TestIOSExpertTestFunction · 0.92
TestAndroidSwipeActionFunction · 0.85
OptionsMethod · 0.85

Calls

no outgoing calls

Tested by 5

TestIOSDouyinFollowLiveFunction · 0.74
TestAndroidExpertTestFunction · 0.74
TestIOSExpertTestFunction · 0.74
TestAndroidSwipeActionFunction · 0.68