I've done this heaps of times in the past but for whatever reason I am failing to do something really basic here. I've simplified and simplified my macro to the bare minimun and still this is not working.
I am looking to get the value of something (that I have some JS doing on a page) to be passed into a KM variable 'QA _auditor'. In the macro below you can see that I set a value (just so that I can see if it changes), then use JS to pass on that value. The KM variable is empty after running this thugh.
I must be missing something very simple, but am not seeing what's wrong here.
Note that ultimately the full script will reside in an external js file, this is just done here directly in KM for simplicity to demonstrate the issue.
but then all your KM name:value pairs will still be exported to the global namespace of the browser's JS instance, where other processes can read them.
Interesting. I had never noticed those triangles and the options in them, and until now I have never used return varname to send results to a variable, and it's always worked.
I wonder if the default settings for this macro has changed (since update to 11?) which means that this new one isn't working using my old approach (old approach being 'not using return').
Anyway, this info has pointed out a very fine detail that I completely missed. Thanks!