Skip to content

Instantly share code, notes, and snippets.

View sivaa's full-sized avatar
🤣
Hey there! I am using GitHub.

Sivasubramaniam Arunachalam sivaa

🤣
Hey there! I am using GitHub.
View GitHub Profile
#================ PART - 0 - PRE-REQUISTES ================
# Install Django and Selenium
# Create a Django Project and add a package called functional_test
#================ PART - 1 - GETTING READY ================
# Step 1: Check if the server is running
from selenium import webdriver
Step 1: Create Movie Add form
movies.html
<form action="/movies/" method="post"> {% csrf_token %}
Movie Name: <input type="Text" name="name"> <input type="submit" value="Add">
</form>
views.py