Q:

how to give the next line in protractor

expect(invoice.getText()).toMatch('This is\s+my URL');
0
invoice.getText().then(function (text) {
    expect(text.replace(/\n/, '')).toBe('This is my URL');
})
0
it('Description' async function(){
    //your code
    expect(await invoice.getText()).toBe('This is\n'+ 'my URL'); 
})
0

New to Communities?

Join the community