Skip to main content
4 of 6
Question formatting
FDM
  • 5.9k
  • 1
  • 17
  • 34

Statuses of Elements

I recently tried to locate an element.

I was unable to identify an xpath and after putting a list in a loop. I noticed that for some elements isDisplayed() returned false, but isEnabled() true. How is it possible?

Could it be that the element was hidden somewhere on the background, but still enabled?

By the way, in my perception "enabled" is when you can bring it under focus, right? And Also, for all elements were isDisplayed() returned false, isSelected() also returned false.

Am I right that if isDisplayed() returns false, isSelected() can never return true and it can only return true if isEnabled() returns true?

Richardson
  • 392
  • 4
  • 9
  • 18