Make Money Online AUTOMATION Python Automation | Part 12 : Deploy Selenium on Heroku | Python Selenium Web Automation

Python Automation | Part 12 : Deploy Selenium on Heroku | Python Selenium Web Automation

Python Automation | Part 12 : Deploy Selenium on Heroku | Python Selenium Web Automation post thumbnail image


Python Automation | Part 12 : Deploy Selenium on Heroku | Python Selenium Web Automation

Are you looking for a way to deploy your Selenium tests to the cloud? If so, Heroku may be a good option for you. In this article, we’ll show you how to deploy Selenium on Heroku and run your tests in the cloud.

Heroku is a cloud platform that offers a free tier of service that includes 1x dyno (virtual machine). A dyno is sufficient for most small Selenium testing projects. If you need more resources, Heroku offers paid plans that allow you to scale your application as needed.

To get started, you’ll first need to create aHeroku account and install the Heroku CLI (command line interface). Once you’ve done that, you can create a newHeroku application using the CLI.

Once your application is created, you’ll need to add a few files to it. The first file is the Procfile. This file tells Heroku how to start your application. It should look like this:

web: python app.py

The second file is requirements.txt. This file lists all of the Python packages that your application depends on. You can create this file manually or generate it using pip freeze > requirements.txt. The contents of this file will look something like this:

Flask==0.10.1
Jinja2==2.7.3
MarkupSafe==0.23
Werkzeug==0.9.6
WSGIUtils==0.1dev-20140319181219
gunicorn==19.3.0
selenium==2

Related Post