'How to add space in Txt file using robotframework
${response14} Get WebElements xpath=// [@id="com_ibm_team_rtc_foundation_web_ui_views_ArtifactListView_4"] Log ${response14}
${txt1}= Get Text ${response14}
create file ${file2} ${value_1}${txt}${value_11}${txt1}
Log ${txt1}
Here I want to store the value of ${value_1}${txt}${value_11}${txt1} in different lines in text file. I am able to store all the values in a paragraph, but i don't want that, i need to store in different lines, How do I do this in robot framework
Solution 1:[1]
You can insert newlines using \n:
create file ${file2} ${value_1}\n${txt}\n${value_11}\n${txt1}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Bryan Oakley |
