> For the complete documentation index, see [llms.txt](https://docs.qatts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qatts.com/master-1/ui-action-methods/data-population-methods/populate-field.md).

# 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");
```
