I have script & passed dynamic selector in script & need to use that variable to execute script in website. Please guide
You can keep that script inside a .txt file and later use Read Text File to store it in a variable.
Use it wherever you want.
Happy Automation!
Please mark it a solution if it works!
Thanks
I tried that way & from config file also. but error result coming.
In between the script i have this line.var datalist={“234234234”}
assigning number to string variable like this io_WebDict(“number”)=“234234234”
In place of 234234234 i need to pass variable name as it is dynamic.i.e like
var datalist={+io_WebDict(“number”)+}
how to pass that?
In the txt file you can write something like this
io_WebDict(“number”)=“InputNumber”
when you have read the data from txt file to variable, use a replace activity.
for eg if the data is read in ScriptData. You can use:
ScriptData.Replace(“InputNumber”,yourDynamicVariable)
and use it as per need.
Thanks
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.