# Bricks for Interacting with the DOM

Many automations involve interacting with elements on the page, such as filling out a form or clicking on a field. You'll use these common bricks to interact with elements on a page.

### Set Input Value

Now that we've collected data in a few different ways (scraping the page to get text in a box and transforming a URL into a shortened link) let's do something with it. In many cases, you're going to want to turn that text into data you can add to a page, such as setting content for a tweet or LinkedIn message, filling out a form in Salesforce, or performing a search query on a site.

<figure><img src="https://2274778196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq123bF1HPQPV35s5vHa1%2Fuploads%2F9bnK8oDlTHltZD4pyHXN%2Fimage.png?alt=media&#x26;token=425567d3-2885-466d-8d9e-48d358d805f3" alt=""><figcaption></figcaption></figure>

To do this, you'll use the **Set Input Value** brick. You can learn more in the [Set Input Value brick docs](https://www.pixiebrix.com/marketplace/51c95696-f0ad-4cc8-acab-e9b351e4e9ca/?utm_source=pixiebrix\&utm_medium=page_editor\&utm_campaign=docs\&utm_content=view_docs_link).

### Simulate DOM event

Here’s another action you’ll find useful as you build your PixieBrix mods! If you're not a developer, the words "DOM" might not mean anything to you, but in plain English, the **Simulate DOM Event** brick allows PixieBrix to interact with items on a page and trigger actions, like clicking elements on a page.

<figure><img src="https://2274778196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq123bF1HPQPV35s5vHa1%2Fuploads%2FKT9EYTOZf491oI0ybUXL%2Fimage.png?alt=media&#x26;token=3ecc9926-76b8-4be0-978f-6494eb31a2f1" alt=""><figcaption></figcaption></figure>

It can be useful for submitting forms or posting content, like tweets or LinkedIn posts, but it’s also a great way to navigate between pages that don’t have clear links between them.

Learn more in the [Simulate DOM Event docs](https://www.pixiebrix.com/marketplace/ceca912f-bb40-4686-a8e6-e5508620018c/).
