Skip to main content
2 of 6
added 22 characters in body
Yu Zhang
  • 9.9k
  • 5
  • 27
  • 48

Statuses of Elements

I recently tried to locate an element because I was unable to identify an x-path 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?

Also, for all elements were isDisplayed() returned false, is Selected() also returned false. Am I right that if isDisplayed() returns fals, isSelected() can never return true and it can only return true if isEnabled() returns true?

Richardson
  • 392
  • 4
  • 9
  • 18