How to create an admin user in Django (superuser)
A quick intro on how to create a super user in Django to be able to access the admin site on a fresh project. In our previous post we created…
A quick intro on how to create a super user in Django to be able to access the admin site on a fresh project. In our previous post we created…
How to get a Django web app up and running. Step 1 Confirm you have python installed: python --version If you have python installed, the above command will return the…
A quick guide and code example on how to verify URL redirects by launching a real browser using Python and Selenium. Firstly we'll import webdriver, and the 'time' module (we'll…
You may be creating automated tests on a project which needs to function with JavaScript disabled, this is quite uncommon these days but its still worth planning for. Here's how…
An easy example of storing and returning the contents of a site data layer in Selenium and Python. # Import webdriver from selenium from selenium import webdriver # Specify our…
A brief example of how to store the cookies of a site in a python object using Selenium. # Import webdriver from selenium import webdriver # Specify our target URL…
Learn how to target an element and get its CSS properties. # Import the modules we need from selenium import webdriver from selenium.webdriver.common.by import By # Specify the target URL…
A quick look at some options when you want to click buttons on a webpage using Python and Selenium. Firstly as always, we'll start with a basic script that visits…
A quick example of how to access the browser console when running automated tests in Python using Selenium. As always lets first import web driver from the selenium module: from…
How to easily manually raise an AssertionError in Python. Option 1 (The long way), useful if you then want to do something else if the condition is not met: x…