How To Give The Next Line In Protractor

[Solved] How To Give The Next Line In Protractor | Perl - Code Explorer | yomemimo.com
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

Answers related to how to give the next line in protractor

Code Explorer Popular Question For Perl