Unable to Invoke Inserted Javascript Fragment

前端 未结 2 474
悲&欢浪女
悲&欢浪女 2021-01-07 11:01

I am attempting to insert a Javascript fragment into a webpage and then invoke it using blue prism. The purpose of this is to analyse what elements are returned from a searc

2条回答
  •  暖寄归人
    2021-01-07 11:49

    To invoke function by action "Invoke Javascript function", in Arguments field you should put arguments in JSON syntax. If there is no argument you put "[{}]".

    On the above Marek's example the function should look:

    function sayHello(name)
    {
        alert("Hello " + name.name + "!");
    }
    

    and arguments: "[{'name':'world'}]".

提交回复
热议问题