How to convert Java List in to Map Object?

When we test our web application, we definitely need to validate the dropdown options listed correctly and also in the same order as we expect. select.getOptions will return as a Java List object.

Here is the way where we can convert our List to Map

1 Like