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

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines 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

1 Like

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.