diff --git a/VIPSWeb/test.py b/VIPSWeb/test.py new file mode 100644 index 0000000000000000000000000000000000000000..d35bd4f2664b959783219f914521a139b607f721 --- /dev/null +++ b/VIPSWeb/test.py @@ -0,0 +1,23 @@ +from django.test import TestCase +import unittest +from selenium import webdriver +from selenium.webdriver.firefox.options import Options + +options = Options() +options.headless = True + +#Test suit +class SearchText(unittest.TestCase): + def setUp(self): + self.driver = webdriver.Firefox(options=options) + self.driver.implicitly_wait(30) + self.driver.get("http://localhost:8080") + + def test_links(self): + self.driver.find_element_by_link_text("VIPS").click() + + def tearDown(self): + self.driver.quit() + +if __name__ == '__main__': + unittest.main()