Hello,
I'm not sure if I understand the concept of Dynamic Region, so I'm looking for some clarifications.
As far as I understand, Dynamic Region is all about image recognition. Your image/element usually has a
- Start X (or X)
- End X (or X+Width)
- Start Y (or Y)
- End Y (or Y + height)
When using Find Image Action in Image Search VBO, you usually get the X (or Start X), and Y (Start Y) values. How do I then determine the End X, and End Y values? Is it possible to get the width and height of an image by using some VBO? Maybe code works?
The way I do it: I know the width and height of image by inspecting the elements. I just add them by "hardcoding" to dynamic region parameters. For example, [X] + height etc.
Another instance,
Let's say we have an Username Text Label element followed by an Username Text Input element. The rule is that if we always know that username input field is next to the label.
In practice, what would be the easiest way to actually determine the Start/End X and Y coordinates for the input field?
My method: Using Find Image, I get the X and Y coordinates of the label. I know the label width and height by inspecting Application Modeller. I also know the width and height of the input field by inspecting Application Modeller, so I "manually" add them.
So Start X for input field could be [X] + (label width), and End X could be [X] + (label width) + (input field width).
How do you guys determine Start/End X positions for input fields?