When there is no such attribute as "disabled" in the element. How do you check whether an element is enabled or not?

879    Asked by RaquelStrauss in QA Testing , Asked on Dec 13, 2019
Answered by Ashish Mishra

The isEnabled() strategy from selenium doesn't work, when there is no such property as impaired in the component. There is some trait that makes the component to be debilitated, so we need to discover the component and get the property utilizing the getAttribute() technique at that point think about what is the incentive for enabled and disabled. In light of this, we can close whether the component is enabled or not.



Your Answer

Interviews

Parent Categories