# Select Web Dropdown

This action selects an option in dropdown.

### Selector of Dropdown Element

Correct dropdown selector (CSS or XPath) is critical for this option to work. Your dropdown selector must have tag `select`. For dropdowns with selector tags that are not `select` (for example, `div` or `span`) use [click-web-element](https://docs.zerowork.io/using-zerowork/using-building-blocks/click-web-element "mention").

Not all dropdowns will have `select` as their tag. Different websites implement different ways of displaying and handling dropdowns.

#### ✅ Example - valid dropdown

Works here because this dropdown has `select` as its tag.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fze4GqiWtPOxARFdsWtuG%2FScreenshot%202023-05-01%20at%2015.04.21.png?alt=media&#x26;token=e75c24c0-fbed-458b-9aed-86762fec2c3a" alt=""><figcaption></figcaption></figure>

For this scenario, you can set up your input this way:

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2F4if6vVOjS5S9hAf56H9l%2FScreenshot%202024-07-05%20at%2020.23.41.png?alt=media&#x26;token=cbd81d22-c63f-4c64-a78e-96c798ddc941" alt=""><figcaption></figcaption></figure>

Alternatively, you can use variable or table reference, like so:

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FaDaWehKnHrGUPGwORERd%2FScreenshot%202024-07-05%20at%2020.23.49.png?alt=media&#x26;token=cc3e5d47-24e6-4f2b-948b-d686c2e9ebe3" alt=""><figcaption></figcaption></figure>

#### ❌ Example - invalid dropdown

Won't work because this dropdown does not have `select` as its tag. In this case, 'dropdown' appears visually as a dropdown, but its selector is tagged as a button, so in reality it is a button styled as a dropdown, and you should use [click-web-element](https://docs.zerowork.io/using-zerowork/using-building-blocks/click-web-element "mention").

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2F7d2K2FElB2QG5tv3Ro0b%2FScreenshot%202023-05-01%20at%2015.08.56.png?alt=media&#x26;token=53ad063b-05c8-4bdb-9810-c6b0e9d900f5" alt=""><figcaption></figcaption></figure>
