I have a container, which contains number of elements.I am looping thru the elements. My question is what is the syntax for checking if the element is NOT clickable.
Following should make it work -
element.is_displayed() and element.is_enabled()
This code is in Python. You can change it to the language of your choice.
The existing methods, isDisplayed and isEnabled cannot check for whether the element is clickable or not.
If you want to wait for element till it is clickable and then click it, you may like to look this: Selenium WebDriver - determine if element is clickable (i.e. not obscured by dojo modal lightbox)
Actually, it may be difficult to check whether the element is clickable or not without actually clicking it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With