How to get the value in form

Sorry, I am a beginner.

In the form on http there is an ID field “e_number”.
I would like to store the number in “e_number” in the katalon recorder variable.

How do I write a command to the katalon recorder?

I am glad if you tell me.

Not sure what your issue is.
Do you want to save some number in variable named like the id of field?
If yes, next question: is this id change somehow or it’s always the same.
If it’s always “e_number” you can use storeEval command to store number into variable.
If it’s change each time you execute test case you need to use runScript/storeEval and find this element (probably using xpath) and create variable with this name given by xpath and your value.

Hope that helps :slight_smile:.

If you want to store the value of a text input field on a form, you can do so like this:
Command: storeValue
Target: id=e_number
Value: e_numberValue

If you want to store the value of a select input field on a form, you can do so like this:
Command: storeSelectedValue
Target: id=e_number
Value: e_numberValue

Both methods will store the value in the variable which can be referenced with ${e_numberValue}

1 Like