Skip to main content
Tweeted twitter.com/StackSQA/status/871125670402936832
edited tags
Link
kirbycope
  • 4.1k
  • 1
  • 13
  • 30
clearer title
Source Link
FDM
  • 5.9k
  • 1
  • 17
  • 34

Statuses of Elements Selenium element properties: Selected vs Enabled vs Displayed

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 Alsoalso, for all elements werewhere 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?

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?

Selenium element properties: Selected vs Enabled vs Displayed

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 where 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?

Question formatting
Source Link
FDM
  • 5.9k
  • 1
  • 17
  • 34

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?

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?

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?

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?

added 22 characters in body
Source Link
Yu Zhang
  • 9.9k
  • 5
  • 27
  • 48
Loading
Source Link
Richardson
  • 392
  • 4
  • 9
  • 18
Loading