Here is our requirement. When user clicks one button, current harness will be refreshed and an activity will run while the refreshing. After refresh, we need to decide whether to run a Java Script function by the result of activity.
We tried to add action set has an Click event and do Refresh-Current-harness action then do Run Script action with a when codintion, but Run Script action will be exeuted before activity finish, so script function will not be exeuted by the result of activity.
Could anyone has adivse about how to achieve this?
***Edited by Moderator Marissa to update platform capability tags****
When rule on button actions would consider property values only from Document Object Model (DOM) and not from clipboard.So I created a hidden property on the same section and refresh section to set the property value. Below link's solution works well.