1# for Windows
2pip install selenium
3
4# for Linux/Max
5pip3 install selenium
6# or
7sudo -H pip3 install selenium
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()