Javascript input to json usage

The case is that i have a simple website, where i have one input. That input value is needed in my script.

Is it possible to have that input value plugged into one of the commands, or can i make it a store value, and then use it? It might be possible with javascript, but i don’t know how

not sure what r u asking.
Please provide a sample website

I can see that it’s a bit vague, let me try to clearify what i mean. I have this local page “Test.html” Where i have one input field, and two buttons.

The first button “Try it” takes the input and types it down under, and the next button “skrr” SHOULD take that input and use it in my script. The script is working on its own. It opens an online text editor and types. But i want to be able to take my input from Text.html and use that.

Hope it makes more sense. There is some screenshots for my test.html and my code

code


You could use executeScript, return a value, store it and name it. Then call it whenever you need it.

  {
      "Command": "executeScript",
      "Target": "return $('#MyButton').text();",
      "Value": "nameItHere",
      "Description": ""
},
    {
      "Command": "echo",
      "Target": "${nameItHere}",
      "Value": "",
      "Description": ""
    },

When i do it like you have done, it just echo’s “nameItHere” instead of the actual value.