Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20755

How to represent End Line in a String for TestComplete using Javascript

$
0
0

I need to verify a warning message in TestComplete that has multiple lines for it's innerText property. The innerText looks like this:

 

FirstLineSecondLine

To do that, I thought using \n would be able to represent the end lines

 

if(warningMessage.innerText =="First Line\n\n\n\nSecond Line")Log.Checkpoint("Pass");elseLog.Error("Fail");

 But it failed. How can I verify this warning message?


Viewing all articles
Browse latest Browse all 20755

Trending Articles