Skip to content

Instantly share code, notes, and snippets.

@JoaquinAcuna97
Created August 8, 2020 23:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
from selenium import webdriver
import unittest
class HomePageTest(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox(
)
def test_home_page(self):
self.driver.get("http://127.0.0.1:8000/")
assert "Django" in self.driver.title
def tearDown(self):
self.driver.quit()
if __name__ == "__main__":
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment