Skip to content
Snippets Groups Projects
Commit 89cbb199 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Add new file

parent 08569fc9
Branches
No related tags found
No related merge requests found
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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment