install selenium python
# for Windows
pip install selenium
# for Linux/Max
pip3 install selenium
# or
sudo -H pip3 install selenium
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()
how to download in selenium
Selenium itself cannot verify file downloads, can click on download link
but can't go outside the browser and open the downloaded file
Other tools need to be used for that Robot and AutoIT
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us