Question : how to give the next line in protractor
Answered by : elated-eagle-bdevy76k934o
invoice.getText().then(function (text) { expect(text.replace(/\n/, '')).toBe('This is my URL');
})
Source : https://stackoverflow.com/questions/48068530/compare-text-with-linebreaks-in-protractor | Last Update : Mon, 27 Jul 20
Question : how to give the next line in protractor
Answered by : elated-eagle-bdevy76k934o
expect(invoice.getText()).toMatch('This is\s+my URL');
Source : https://stackoverflow.com/questions/48068530/compare-text-with-linebreaks-in-protractor | Last Update : Mon, 27 Jul 20