Shell/Bash: install selenium python Example

By

Shell/Bash Example: This is the "install selenium python" Example. compiled from many sources on the internet by SimpleTutorials.org

install selenium python

# for Windows
pip install selenium

# for Linux/Max
pip3 install selenium
# or
sudo -H pip3 install selenium

install selenium python

$ pip install selenium

python selenium setup

from selenium import webdriver
import unittest

class example(unittest.TestCase):
  
    @classmethod
    def setUpClass(cls):

        cls.driver = webdriver.Chrome("C:\Program Files (x86)\chromedriver.exe")
        cls.driver.maximize_window()
        
    def test_login(self):
      
      self.driver.get("https://eu-uat2.weissr-cloud.com")
      
    @classmethod
    def tearDownClass(cls):

        cls.driver.quit()
        print("Test Completed")
        
if __name__ == '__main__':
  unittest.main()


* Summary: This "install selenium python" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others