English (English) - Change language

Sample 3. Step 23: Detecting the name of the Country field with a kwOrigin element

We will use an element of type Static Text and the keyword “OriginOfGoods:” to detect the name of the Country field.

To create the kwOrigin element:

  1. In the Footer element, create an element of type Static Text and name it kwOrigin.
  2. Click the Static Text tab.
  3. In the Search text field, enter the text to find: “OriginOfGoods:”.
  4. Click the Relations tab.
  5. Since the Country field can only be located below the footer of the table, set the following search constraint:
    • Below the element Footer.kwFooter, Offset = 0.
  6. Click the Advanced tab.
  7. Since the Country field is located in the left half of the image, set the following additional search constraint in the Advanced pre-search relations: Look for the object in the left half of the page. In the FlexiLayout language
    LeftOf: PageRect.Left + PageRect.Width/2;
  8. Try matching the FlexiLayout with the test images and make sure that the program successfully detects the element on all the images where applicable.

13.04.2021 11:12:27

Please leave your feedback about this article