Styrow.dev
Question 34 of 36

How to verify whether a dropdown is selected or not in angular applications?

Question

How to verify whether a dropdown is selected or not in angular applications?

Answer

To verify whether a dropdown list is selected or not in angular applications using Protractor, we use isSelected() method. isSelected() method returns Boolean value. It returns true if the element is selected and false if the element is not selected.