Lage
10 years agoContributor
Log HTML using script
Hi all,
Is it possible to save good looking messages through scripting like "keywordTest > LogAtributes > Log" does?
I tried this code below but is not working. The message is shown as plain text including the html tags.
note: I don't want to see the html in the Additional Info tab like it is shown at the bottom of this page.
Function Common_LogSomething (Level, TextToLog, color) Set attr = Log.CreateNewAttributes attr.ExtendedMessageAsPlainText = False Dim myMessage 'myMessage = "<html><body><p><b style=""color:" & color & chr(34) & ">" myMessage = MyMessage & TextToLog & " " 'myMessage = MyMessage & "</b></p></body></html>" If (Level = "Message") Then Log.Message myMessage, attr End If ......etc
Many thanks
Lage