postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.83k stars 838 forks source link

Evaluate html forms response #12897

Closed apis3445 closed 2 months ago

apis3445 commented 4 months ago

Is there an existing request for this feature?

Is your feature request related to a problem?

I have one request that returns and HTML form, I am using cheerio to get some input values and store as environment variables and reuse in another request. In flows I can't update any environment variable, and I tried with the path but doesn't shows the value of all input elements. The path returns: body.!doctype.html.body.form.input.0.@_value with the error when I execute that expression ended unexpectedly

Describe the solution you'd like

Get values from html form html with cheerio is: $('input[name="myNane"]').val() or some jQuery or javascript code

Describe alternatives you've considered

No response

Additional context

No response

rabbah commented 4 months ago

In flows I can't update any environment variable

you don't need to do this in flows - you can directly wire the value you extracted from one request response into a variable for a future request.