# Populate Field

***populateField*** method is used to populate the UI element with the test data.&#x20;

#### ***Syntax***

1. ***void*****&#x20;populateField*****( String elementName)***
2. ***void populateField( String elementName, Object objectValue)***

| **Name**          | **Type** | **Description**        |
| ----------------- | -------- | ---------------------- |
| ***elementName*** | String   | Name of the group      |
| ***objectValue*** | Object   | The value to be search |

#### Code Snippet

```
/*
 *
 */
populateField("SearchText", "Apple");
```
