In the Action of “Execute Java Script” how do you use “Arg”?
Hi @carlos.roa ,
“Args” is a way of giving values outside the code to the code at the end of every script we will put this method:
.value=arguments please follow this example:
First, I’ve copied this element JS Path:
Now, I’ve pasted the path to the input, and I added
.value=argumentsat the end, as you see here:
Now, in the “Args” section, I will put some value for this example, I put “Alex”
and now, in simple words, “Alex” is the first argument, so Alex= now let’s look at it practically:
If you want to add another argument, all you have to do is to add another value to the Args section in this example, I will put the value “Tal”, so basically, Tal= this GIF should help you understand:
Please let me know if it helped you, if you have more questions feel free to ask
Thank you very much for all your collaboration…
You are welcome .