power_settings_new

How do I pass break line character in a .feature file?

by
asked
0 votes
33 views
So, I have a scenario, where I am supposed to assert the string. And the string has a line break. So, how do I assert it?

Say, I need to assert

Then the element text contains 'S Sharma Help'

Actual text is

S Sharma

Help

So, How do I pass the line break?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

answered by (1.1k points)
0 votes
You really can't pass next line. Instead, I suggest you to use \n or you can use some character like :: and once you get the string in your step defination files, you can replace it with line break character.
add
...