# Can we Login to an app using api endpoint and use the response in selenium automation code

**URL:** <https://community.postman.com/t/can-we-login-to-an-app-using-api-endpoint-and-use-the-response-in-selenium-automation-code/26823>\
**Category:** Help Hub\
**Created:** [August 17, 2021, 12:25pm UTC](https://community.postman.com/t/can-we-login-to-an-app-using-api-endpoint-and-use-the-response-in-selenium-automation-code/26823 "2021-08-17T12:25:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![srishbad](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@srishbad](https://community.postman.com/u/srishbad)\
**Post date:** [August 17, 2021, 12:25pm UTC](https://community.postman.com/t/can-we-login-to-an-app-using-api-endpoint-and-use-the-response-in-selenium-automation-code/26823/1 "2021-08-17T12:25:20Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_:  
I have Python selenium robot framework automation code. I want to avoid again and again login to the app as it takes a lot of time for login page to load. I want to automate the login activity through postman and pass the response to the selenium automation code, that the user is logged in and we can proceed with further test execution.  
Is this scenario feasible?  
If yes how we can connect postman and the response with the pycharm selenium code.

_How I found the problem_:  
It is related to the current project I am working on

---

<div class="post-metadata">

**Author:** ![ricardomartinsvia](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@ricardomartinsvia](https://community.postman.com/u/ricardomartinsvia)\
**Post date:** [April 21, 2022, 10:47pm UTC](https://community.postman.com/t/can-we-login-to-an-app-using-api-endpoint-and-use-the-response-in-selenium-automation-code/26823/2 "2022-04-21T22:47:44Z")

</div>

Hello, @srishbad. I have a very similar wish, the only difference is that I’m trying to merge the API login (HTTParty) with my UI automation (Appium/Ruby). Did you by any chance find out a solution for your problem?

Best regards.
