cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pass value from javascript to next synthetic event

sanjiv1987
Guide

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.



1 REPLY 1

Benjamin_Fellne
Dynatracer
Dynatracer

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.