Hi Indium,
Yes, ATS supports creating actions that use javascript. As you have already pointed out one such action is ‘Execute Javascript String’ https://docs.mendix.com/addons/ats-addon/rg-one-execute-javascript-string
This code is javascript and it is running in the context of the browser session giving you complete and direct access to the DOM of the application under test.
At the moment only javascript is supported.
Hope this helps,
Andrej
Hi Andrej Gajduk,
And one more doubt that is it ok to use some JS libraries like Node.js to create custom action in inbuilt action like ‘Execute Javascript String’ because in this documentation link (https://docs.mendix.com/addons/ats-addon/rg-one-execute-javascript-string), they mention only javascript and they didn’t mention about the JS libraries like Node.js. So can you please clarify this.
Thank You
To clarify, Node.JS is not a javascript library, it is a javascript runtime meant for writing server-side javascript.
The javascript actions in ATS run in the browser context, so it is not Node.JS.
Javascript actions are subject to the same restrictions as any javascript running in the browser, e.g. no access to the file system. On the other hand they come with direct access to the DOM.