Is there a way to check for ellipsis on text using nightwatch?
Asked 07 September, 2021
Viewed 1.8K times
  • 67
Votes

Is there a way to check for ellipsis on text or text that has been truncated using nightwatch. I tried to use browser.assert.ok(ref.offsetWidth < ref.scrollWidth) but it seems like Nightwatch does not have attributes offsetWidth nor scrollWidth. Has anyone encounter this before ?

1 Answer