Forum Discussion

KellyWiegand's avatar
KellyWiegand
Occasional Contributor
2 years ago
Solved

How to verify an empty dropdown?

Hi,

So there are some dropdown in our website, how can I know which one is empty?

empty:

has value:

Below is my code. I already get the select object, and choose the first item. But I don't know it's empty or not. What method should I use?

The code doesn't have error even if a dropdown is empty.

Thank you!