Hi all, I'm new to the platform, got it running on March 4. I am pleased with results so far.
For the RPA Challenge (Input Forms) I got the following result
RPA Challenge
but it was torture minifying the JS to put in the ExecuteScript function in Firefox.
In the freeware, downloadable version Robin (the scripting language Softomotive developed before MS bought them out), whose successor apparently powers PAD, you can write multiline variables like so:
loop i from 0 to 9
set js to js + """
m = document.querySelector('input[ng-reflect-name="labelEmail"]');
m.value = '""" + emailList[i] + """';
a = document.querySelector('input[ng-reflect-name="labelAddress"]');
a.value = '""" + addressList[i] + """';
f = document.querySelector('input[ng-reflect-name="labelFirstName"]');
f.value = '""" + firstNameList[i] + """';
l = document.querySelector('input[ng-reflect-name="labelLastName"]');
l.value = '""" + lastNameList[i] + """';
p = document.querySelector('input[ng-reflect-name="labelPhone"]');
p.value = '""" + phoneList[i] + """';
r = document.querySelector('input[ng-reflect-name="labelRole"]');
r.value = '""" + roleList[i] + """';
c = document.querySelector('input[ng-reflect-name="labelCompanyName"]');
c.value = '""" + companyNameList[i] + """';
s = document.querySelector('input[value="Submit"]');
s.click();
"""
end
which takes a lot (but not all, by any means) of the grief out of quoting and escaping and interpolating variables. Translating that to PAD's requirements was not fun.
Has anybody found an easy way to handle multi-line strings in PAD?
Thanks very much for reading this.
Regards,
burque505