# Relative

<figure><img src="https://3771172870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HBXnl7BPMKhSgbYYPV1%2Fuploads%2Fxrg2Gw7zI39QlpZA5fQ1%2FRelative_1.png?alt=media&#x26;token=995dad45-28a5-4f8b-a3a3-387f3de10183" alt=""><figcaption></figcaption></figure>

If the content changes in real time and it is ambiguous to specify a screen element with OD or OCR, use it when you need to specify a screen element based on the relative position based on the unchanged screen element.

As for the reference point, screen elements set using OD, OCR, and Crop Image are used, and the actual screen elements to be used are selected and set by drag & drop.

See the example for detailed instructions.

{% content-ref url="../tutorial/example3.-google-search-by-text-image" %}
[example3.-google-search-by-text-image](https://cs001-apptestai.gitbook.io/stego-user-manual-1/tutorial/example3.-google-search-by-text-image)
{% endcontent-ref %}

{% content-ref url="../tutorial/example5.-how-to-use-conditional-action" %}
[example5.-how-to-use-conditional-action](https://cs001-apptestai.gitbook.io/stego-user-manual-1/tutorial/example5.-how-to-use-conditional-action)
{% endcontent-ref %}

### Relative screen element attributes&#x20;

You can set various properties by clicking on the screen element in a step using Relative.

See the link below for instructions on how to access the screen element attributes.

[Set Step Properties](https://cs001-apptestai.gitbook.io/stego-user-manual-1/scenario-make-n-go/set-step-properties)

The Relative screen element provides attributes for both the reference point and the Relative.

#### Baseline Screen Element Attribute&#x20;

See the attributes of the screen analysis tool used to set the reference point.

{% content-ref url="od" %}
[od](https://cs001-apptestai.gitbook.io/stego-user-manual-1/strategy/od)
{% endcontent-ref %}

{% content-ref url="ocr" %}
[ocr](https://cs001-apptestai.gitbook.io/stego-user-manual-1/strategy/ocr)
{% endcontent-ref %}

{% content-ref url="crop-image" %}
[crop-image](https://cs001-apptestai.gitbook.io/stego-user-manual-1/strategy/crop-image)
{% endcontent-ref %}

#### Relative Screen Element Attribute&#x20;

1. Left: Top left X coordinates of the screen element
2. Top: Top left Y coordinates of the screen element
3. Right: Bottom right X coordinates of the screen element
4. Bottom: Bottom right Y coordinates of the screen element

<figure><img src="https://3771172870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HBXnl7BPMKhSgbYYPV1%2Fuploads%2FsbHqAVHkaCVRXLXXye2l%2Fimage.png?alt=media&#x26;token=b07dae60-b044-42a1-a17e-903a9ad0f514" alt=""><figcaption></figcaption></figure>
