Append line

uiautomation
studio

#1

I am getting the below error in Append line

Capture


#2

What string you wanna append to a specific file is blank or empty so first make sure your are getting something in a variable which you wanna append.


#3

string variable
I am getting the value in it.


#4

Hi there @sowmya
Before you attempt to append the text, please use an if statement with the following condition:

If IsNullOrEmpty([yourstring]) = True Then

  • Throw Exception(new Exception(“String Is Null Or Empty”))

End If

Thanks,
Josh


#5

Assign a value to your variable. Then use Appendline