# Ability to use postman to click a button?

**URL:** <https://community.postman.com/t/ability-to-use-postman-to-click-a-button/35447>\
**Category:** Help Hub\
**Created:** [May 18, 2022, 5:27pm UTC](https://community.postman.com/t/ability-to-use-postman-to-click-a-button/35447 "2022-05-18T17:27:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkruep](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@bkruep](https://community.postman.com/u/bkruep)\
**Post date:** [May 18, 2022, 5:27pm UTC](https://community.postman.com/t/ability-to-use-postman-to-click-a-button/35447/1 "2022-05-18T17:27:17Z")

</div>

Hello I am not sure if I am able to do this with Postman but just thought I would check. If you look at my snipit, the status shows an empty string when running a POST or PUT for this particular API…

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/a/a5d9aca9755054fb5e7a094b56dc04fdbaa1a507.jpeg)

The reason for this is because for the status to change I need to click the next button:

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/c/ce76f5090d4807ea4f6401c0766dc3bad48d6b39.png)

My question is simply is there a way for me to write in Postman onclick events? I tried doing this in the pre-script but returned an error…

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/4/4edcd12d97cf9ab3e6deddf4bfb24bdafbba0844.png)

This is the inspected element for the button:

if I can’t do this with Postman I can try learning Selenium for this script but hoping to use it with Postman. Any help would be much appreciated.

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [May 18, 2022, 6:11pm UTC](https://community.postman.com/t/ability-to-use-postman-to-click-a-button/35447/2 "2022-05-18T18:11:51Z")

</div>

Hi @bkruep

Pretty sure Postman can’t do onclick events (happy for someone else to correct me if that is in fact a posibility).

I would suggest opening chrome dev-tools and monitoring the calls made when the button is clicked. You may see something that you can export (right click and “copy” the cURL comment, then import it into Postman).

Chances are that when that button is clicked the form data is collated into one POST/PUT.
