OCRRegion method

Class: OCRRegionPlatform: Selenium 3Language: Python SDK:

Define a region from which Eyes should extract the image.

You can pass, an element, a selector or a region that defines the top left corner . and dimensions of a rectangle on the current page.

For more information see Eyes OCR support .

This feature is experimental. Please note that the functionality and/or API may change.

Syntax


obj = OCRRegion(target)

Parameters

target
Type:Union[Region,CssSelector,AnyWebElement]
The image to be searched.
CssSelector
The type CssSelector is defined as: Text
AnyWebElement
The type AnyWebElement is defined as: Union[EyesWebElement,WebElement]

Return value

Type: None
This method returns the object that called it so that it can be used to call other methods supportd by this class in a fluent API style.

Example

Example not yet available.