AppleScript JavaScript getElements
Multiline text can be achieved using either of the following methods:


Separate the text by new lines, with the first quote and last quote encapsulating the contents.


Use \n as new line.

set myvar to "hello\nanother\n\nfinal"



You can set the value of a select element using the following JavaScript

document.getElementById("PaymentEnSelection").value = 1


The value given is one of the value attributes on the option elements that you wish to select.