Documentation ¶
Index ¶
- type DebugMode
- type DriverExt
- func (dExt *DriverExt) CloseMjpegStream()
- func (dExt *DriverExt) ConnectMjpegStream(httpClient *http.Client) (err error)
- func (dExt *DriverExt) Debug(dm DebugMode)
- func (dExt *DriverExt) DoubleTap(param interface{}) (err error)
- func (dExt *DriverExt) DoubleTapOffset(param string, xOffset, yOffset float64) (err error)
- func (dExt *DriverExt) Drag(pathname string, toX, toY int, pressForDuration ...float64) (err error)
- func (dExt *DriverExt) DragFloat(pathname string, toX, toY float64, pressForDuration ...float64) (err error)
- func (dExt *DriverExt) DragOffset(pathname string, toX, toY int, xOffset, yOffset float64, ...) (err error)
- func (dExt *DriverExt) DragOffsetFloat(pathname string, toX, toY, xOffset, yOffset float64, ...) (err error)
- func (dExt *DriverExt) FindAllImageRect(search string) (rects []image.Rectangle, err error)
- func (dExt *DriverExt) FindImageRectInUIKit(search string) (x, y, width, height float64, err error)
- func (dExt *DriverExt) FindTextByOCR(search string) (x, y, width, height float64, err error)
- func (dExt *DriverExt) FindUIElement(param string) (ele gwda.WebElement, err error)
- func (dExt *DriverExt) FindUIRectInUIKit(search string) (x, y, width, height float64, err error)
- func (dExt *DriverExt) ForceTouch(pathname string, pressure float64, duration ...float64) (err error)
- func (dExt *DriverExt) ForceTouchOffset(pathname string, pressure, xOffset, yOffset float64, duration ...float64) (err error)
- func (dExt *DriverExt) GesturePassword(pathname string, password ...int) (err error)
- func (dExt *DriverExt) MappingToRectInUIKit(rect image.Rectangle) (x, y, width, height float64)
- func (dExt *DriverExt) OnlyOnceMatchMode(matchMode TemplateMatchMode) (newExt *DriverExt)
- func (dExt *DriverExt) OnlyOnceThreshold(threshold float64) (newExt *DriverExt)
- func (dExt *DriverExt) PerformActions(actions *gwda.W3CActions) error
- func (dExt *DriverExt) PerformTouchActions(touchActions *gwda.TouchActions) error
- func (dExt *DriverExt) ScreenShot(fileName string) (string, error)
- func (dExt *DriverExt) Swipe(pathname string, toX, toY int) (err error)
- func (dExt *DriverExt) SwipeDown(pathname string, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeDownOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeFloat(pathname string, toX, toY float64) (err error)
- func (dExt *DriverExt) SwipeLeft(pathname string, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeLeftOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeOffset(pathname string, toX, toY int, xOffset, yOffset float64) (err error)
- func (dExt *DriverExt) SwipeOffsetFloat(pathname string, toX, toY, xOffset, yOffset float64) (err error)
- func (dExt *DriverExt) SwipeRight(pathname string, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeRightOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeUp(pathname string, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeUpOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (dExt *DriverExt) Tap(param interface{}) error
- func (dExt *DriverExt) TapOffset(param string, xOffset, yOffset float64) (err error)
- func (dExt *DriverExt) TapWithNumber(param string, numberOfTaps int) (err error)
- func (dExt *DriverExt) TapWithNumberOffset(param string, numberOfTaps int, xOffset, yOffset float64) (err error)
- func (dExt *DriverExt) TouchAndHold(pathname string, duration ...float64) (err error)
- func (dExt *DriverExt) TouchAndHoldOffset(pathname string, xOffset, yOffset float64, duration ...float64) (err error)
- type OCRResult
- type OCRService
- type Point
- type ResponseOCR
- type TemplateMatchMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverExt ¶
type DriverExt struct { gwda.WebDriver MatchMode TemplateMatchMode Threshold float64 // contains filtered or unexported fields }
func Extend ¶
func Extend(driver gwda.WebDriver, threshold float64, matchMode ...TemplateMatchMode) (dExt *DriverExt, err error)
Extend 获得扩展后的 Driver, 并指定匹配阀值, 获取当前设备的 Scale, 默认匹配模式为 TmCcoeffNormed, 默认关闭 OpenCV 匹配值计算后的输出
func (*DriverExt) CloseMjpegStream ¶
func (dExt *DriverExt) CloseMjpegStream()
func (*DriverExt) ConnectMjpegStream ¶
func (*DriverExt) DoubleTapOffset ¶
func (*DriverExt) DragOffset ¶
func (*DriverExt) DragOffsetFloat ¶
func (*DriverExt) FindAllImageRect ¶
func (*DriverExt) FindImageRectInUIKit ¶
func (*DriverExt) FindTextByOCR ¶
func (*DriverExt) FindUIElement ¶
func (dExt *DriverExt) FindUIElement(param string) (ele gwda.WebElement, err error)
func (*DriverExt) FindUIRectInUIKit ¶
func (*DriverExt) ForceTouch ¶
func (*DriverExt) ForceTouchOffset ¶
func (*DriverExt) GesturePassword ¶
func (*DriverExt) MappingToRectInUIKit ¶
func (*DriverExt) OnlyOnceMatchMode ¶
func (dExt *DriverExt) OnlyOnceMatchMode(matchMode TemplateMatchMode) (newExt *DriverExt)
func (*DriverExt) OnlyOnceThreshold ¶
func (*DriverExt) PerformActions ¶
func (dExt *DriverExt) PerformActions(actions *gwda.W3CActions) error
func (*DriverExt) PerformTouchActions ¶
func (dExt *DriverExt) PerformTouchActions(touchActions *gwda.TouchActions) error
func (*DriverExt) ScreenShot ¶
ScreenShot takes screenshot and saves image file to $CWD/screenshots/ folder
func (*DriverExt) SwipeDownOffset ¶
func (*DriverExt) SwipeFloat ¶
func (*DriverExt) SwipeLeftOffset ¶
func (*DriverExt) SwipeOffset ¶
func (*DriverExt) SwipeOffsetFloat ¶
func (*DriverExt) SwipeRight ¶
func (*DriverExt) SwipeRightOffset ¶
func (*DriverExt) SwipeUpOffset ¶
func (*DriverExt) TapWithNumber ¶
TapWithNumber sends one or more taps
func (*DriverExt) TapWithNumberOffset ¶
func (*DriverExt) TouchAndHold ¶
type OCRService ¶
type ResponseOCR ¶
type TemplateMatchMode ¶
type TemplateMatchMode int
TemplateMatchMode is the type of the template matching operation.
const ( // TmSqdiff maps to TM_SQDIFF TmSqdiff TemplateMatchMode = iota // TmSqdiffNormed maps to TM_SQDIFF_NORMED TmSqdiffNormed // TmCcorr maps to TM_CCORR TmCcorr // TmCcorrNormed maps to TM_CCORR_NORMED TmCcorrNormed // TmCcoeff maps to TM_CCOEFF TmCcoeff // TmCcoeffNormed maps to TM_CCOEFF_NORMED TmCcoeffNormed )
Click to show internal directories.
Click to hide internal directories.