question

Sanjeev n. avatar image
Sanjeev n. asked ·

Pass value from javascript to next synthetic event

Iam currently having a step which generates a random text and populates the value in text field.

But the value is not getting populated in the further pages.

Basically I removed a keystroke step which had a hardcoded value and replaced it with JavaScript code.

I want to pass JavaScript output to "textValue" field for keystroke.


javascriptbrowser monitors
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Benjamin F. avatar image
Benjamin F. answered ·

Hi Sanjeev,

you can do this easily by using placeholders.

1. Create a javascript step and use the api to create a new placeholder variable.

api.setValue("key", "value");

2. Use the defined key as a placeholder for fields where its possible to use them like keystroke events.


Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Space Topics