---
description: (Google Map Example)
---

# Example4. Zoom in Google Maps

Let's write a scenario where we find a place on Google Maps and then zoom in on the map.

First, search for Los Angeles on Google Maps.

<mark style="background-color:green;">Step1.</mark> After launching Google Maps, create a new step and select the "Touch" action.

<figure><img src="https://3771172870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HBXnl7BPMKhSgbYYPV1%2Fuploads%2Fr3KXQU91yB4HNuOdapLp%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202022-09-23%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%2011.35.26.png?alt=media&#x26;token=b9a02404-f342-46f9-8a31-d12c67fca2c8" alt=""><figcaption></figcaption></figure>



<mark style="background-color:green;">Step2.</mark> After screen analysis, select "OCR" as the analysis tool.

<figure><img src="https://3771172870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HBXnl7BPMKhSgbYYPV1%2Fuploads%2FAmMDsncIdnER66dUMeps%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202022-09-23%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%2011.37.26.png?alt=media&#x26;token=b21b8c4f-a028-49f4-ad5f-360ee05a30c8" alt=""><figcaption></figcaption></figure>

<mark style="background-color:green;">Step3.</mark> Select "Search" on the screen and add it as a UIObject of the step by dragging and dropping it.

<figure><img src="https://3771172870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HBXnl7BPMKhSgbYYPV1%2Fuploads%2FVtIzrVONcxqWhkwIfrDP%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202022-09-23%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%2011.39.05.png?alt=media&#x26;token=edd217b8-82f9-49c4-bd2c-a706ee2bd456" alt=""><figcaption></figcaption></figure>

<mark style="background-color:green;">Step4.</mark> Create a new step, select "Input" as the action, select Full Screen at the device screen analysis tool, and then drag and drop the entire screen to add it as a UIObject to the step. After that, in the value value of Attributes, enter Los Angeles.

<figure><img src="https://3771172870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HBXnl7BPMKhSgbYYPV1%2Fuploads%2FCeMO06SGUqYyt19IaSfn%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202022-09-23%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%2011.44.25.png?alt=media&#x26;token=7e20c4c8-9777-4f2e-964b-8f06dd8e5db7" alt=""><figcaption></figcaption></figure>

<mark style="background-color:green;">Step5.</mark>  Create a new step, select "Touch" as the action, select OCR in the device screen analysis, and then drag and drop "Angelus" on the screen to add it as a UIObject to the step.

<figure><img src="https://3771172870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HBXnl7BPMKhSgbYYPV1%2Fuploads%2FWWFgL5A10UtYYcjhcdne%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202022-09-23%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%2011.49.28.png?alt=media&#x26;token=73b06f1b-6fa1-4351-a7de-78d46655c976" alt=""><figcaption></figcaption></figure>

<mark style="background-color:green;">Step6.</mark> Since there are several "Angeles" on one screen, you need to modify the Selector value in the UIObject property value. In this example, you need to change the Selector value to 2 so that the second "Angeles" is touched. To bring up the UIObject property panel, click the UIObject Field of the step.

<figure><img src="https://3771172870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HBXnl7BPMKhSgbYYPV1%2Fuploads%2FbCoV1BLuQ3L4WAtX2450%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202022-09-23%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%2011.54.38.png?alt=media&#x26;token=f4647af5-9537-4313-acf0-cdabb2cca8f6" alt=""><figcaption><p>Click UIObject Field</p></figcaption></figure>

<figure><img src="https://3771172870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HBXnl7BPMKhSgbYYPV1%2Fuploads%2FoDmVyWp76zujXpW79qqG%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202022-09-23%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%2011.56.57.png?alt=media&#x26;token=c7172980-1edd-42cb-8002-8f4a35f183d9" alt=""><figcaption><p>UIObject Properties Panel</p></figcaption></figure>

<mark style="background-color:green;">Step7.</mark> Create a new step and select “Pinch Out” as the action, then select Custom Box with the device screen analysis tool and drag the center of the screen. Drag and drop the selected center part to add it to the step as a UIObject.

<figure><img src="https://3771172870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HBXnl7BPMKhSgbYYPV1%2Fuploads%2FsWR0DdJLp9Fa3gyhjJTF%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202022-09-23%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%204.46.29.png?alt=media&#x26;token=e2716933-cd13-43f5-8243-d34195d5bd58" alt=""><figcaption></figcaption></figure>

<mark style="background-color:green;">Step8.</mark> Change to the state where no text is entered in the search bar of Google Maps and run the scenario.

<figure><img src="https://3771172870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HBXnl7BPMKhSgbYYPV1%2Fuploads%2FptBPJ7EEXLW6KVl9qP9w%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202022-09-23%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%203.00.47.png?alt=media&#x26;token=68f84b92-2081-4c49-b0d5-f57c64710b13" alt=""><figcaption></figcaption></figure>
