Forum Discussion
rraghvani
Champion Level 3
Here's script code to enter mutlple lines in a text area,
function testarea()
{
// https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_textarea
var browser = Sys.Browser("chrome");
var page = browser.Page("https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_textarea");
var textarea = page.Panel("container").Panel("iframecontainer").Panel("iframe").Panel("iframewrapper").Frame("iframeResult").Form(0).Textarea("w3review");
textarea.Keys("~a[Del]");
textarea.Keys("S2F33_DefineReport_Job: 'S2F33' W\r<L[2]\r<U2[1] 1> /* DATAID */\r<L[1]\r<L[2]\r<U4[1] 8010> /* RPTID */\r<L[2]\r<U4[1] 8010> /* Clock */\r>\r>\r>\r>.");
}
Which is in the same format.
subhram_sahoo
2 years agoOccasional Contributor
in above way i wrote. but its not taking the value inside [] bracket.
ex-
L[2]
U2[1]
U2[1]
its only displaying L and U2. Not the value 2 and 1 inside [] bracket
Related Content
- 6 years ago
- 6 years ago
- 9 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 9 days ago