Skip to content

Instantly share code, notes, and snippets.

@JoaquinAcuna97
Created August 8, 2020 23:28
Show Gist options
  • Save JoaquinAcuna97/1178fce1f8d8a12be1217218e4606f24 to your computer and use it in GitHub Desktop.
Save JoaquinAcuna97/1178fce1f8d8a12be1217218e4606f24 to your computer and use it in GitHub Desktop.
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