I created a HTML file, loaded it into IE and now I would like to add lines to the TextArea contained in the HTML Page.
<FORM NAME="driver">
<textarea cols="100" name="Protocol" rows="20"></textarea></p>
<input name="Mail_Folder" type="text" />
<input name="CloseApp" type="button" value="Exit" onclick="CloseLoop()" />
<input name="FormatText" type="button" value="Process Excel Sheet" onclick="ProcessExcel()" />
<input type="hidden" name="Loop" value="TRUE">
</FORM>
Now I use this HTML file with the code:
$ie = new-object -com "InternetExplorer.Application
$ie.navigate2($GuiFile)
$ie.Visible = $true
and I write into the table with:
$ie.Document.getElementById("Protocoll").value = "Text"
this works fine. However I am not able to insert new lines, when I use "\n", "\r\n" or
, nothing, it appears literally.
What am I missing ?
Thank you very much for every hint. Yours, Eryk