I try to access two dropdowns using selenium and python. The first problem is that, the class for second button is not too stable meaning, after selecting an option, the class name is changing.
\_\_\_\_\_\_\_\_\_\_ SECOND BUTTON \_\_\_\_\_\_\_\_\_\_\_\_\_

```
awsui-select-trigger-placeholder

```

Before:
[![enter image description here](https://i.stack.imgur.com/PkrJk.png)](https://i.stack.imgur.com/PkrJk.png)
After selecting first option:

[![enter image description here](https://i.stack.imgur.com/NBm4e.png)](https://i.stack.imgur.com/NBm4e.png)

\_\_\_\_\_\_\_\_\_\_\_\_ FIRST BUTTON \_\_\_\_\_\_\_\_\_\_\_\_\_

Second issue is that the first button has same class

```
awsui-select-trigger-label

```

Before:
[![enter image description here](https://i.stack.imgur.com/xfLaP.png)](https://i.stack.imgur.com/xfLaP.png)

After selecting the option:

[![enter image description here](https://i.stack.imgur.com/n4dUS.png)](https://i.stack.imgur.com/n4dUS.png)
Is there a way I could access the class more dynamically?

I'm using this code for the second button:

```
att3 = WebDriverWait(driver, 5).until(
                ec.element_to_be_clickable(
                    (By.CLASS_NAME,
                     'awsui-select-trigger-placeholder')))

```

Thank you so much.

[![enter image description here](https://i.stack.imgur.com/nMnnN.png)](https://i.stack.imgur.com/nMnnN.png)