How to verify an empty dropdown?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2023
11:56 PM
03-19-2023
11:56 PM
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!
Solved! Go to Solution.
Labels:
- Labels:
-
Script Tests
-
Web Testing
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023
12:25 AM
03-20-2023
12:25 AM
I try to use "size" property, but it returns 0.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023
01:19 AM
03-20-2023
01:19 AM
Solved it
