Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
In my application, with respect to user access some elements in drop down will be enabled/disabled.I have to check whether the particular element is disabled or not.
If the element you're trying to find has a literal "disabled" attribute you're probably looking for someElement.isEnabled() which would return a boolean based on the outcome.
Also, you can use XPath to identify the disabled elements in dropdown
Required, but never shown