Reputation: 303
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 ?
Upvotes: 0
Views: 72
Reputation: 2509
NightwatchJS by itself might not support this.
As far as I know, there is a possibility to do this using Javascript.
I remember doing something similar but don't have any code or example.
Upvotes: 1