1from selenium import webdriver
2import unittest
3
4class example(unittest.TestCase):
5
6 @classmethod
7 def setUpClass(cls):
8
9 cls.driver = webdriver.Chrome("C:\Program Files (x86)\chromedriver.exe")
10 cls.driver.maximize_window()
11
12 def test_login(self):
13
14 self.driver.get("https://eu-uat2.weissr-cloud.com")
15
16 @classmethod
17 def tearDownClass(cls):
18
19 cls.driver.quit()
20 print("Test Completed")
21
22if __name__ == '__main__':
23 unittest.main()