<div id='messagesDiv'></div>
I want to test that this div
element is empty.
var messagesDiv = element(by.id('messagesDiv'));
expect(messagesDiv).to...
How would I achieve that?
I think this:
expect(messagesDiv.getText()).toBe('');
should do the trick. More information here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With