0

I'm trying to use webdriver.io function browser.elementIdDisplayed(element.ELEMENT), but it doesn't return a boolean as the docs says. Instead it returns some kind of object.

I'm confused, how can I get a value from this if the element is displayed or not? Please help.

I have tried also with browser.elementIdDisplayed(element.ELEMENT).value but it is always true?

sayhan
  • 1,168
  • 1
  • 16
  • 22
mismas
  • 1,236
  • 5
  • 27
  • 55

1 Answers1

0

It was ok to use
browser.elementIdDisplayed(element.ELEMENT).value,
but my other logic of verifying that element was displayed was wrong.

mismas
  • 1,236
  • 5
  • 27
  • 55