Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Last active September 28, 2022 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SarahElson/40c1ca6a03a9dad1aad9cabd5d1ca9cd to your computer and use it in GitHub Desktop.
Save SarahElson/40c1ca6a03a9dad1aad9cabd5d1ca9cd to your computer and use it in GitHub Desktop.
How To Download File Using Selenium Python?
import unittest
from tests.conftest import Browser
from pages.selenium_playground_page import *
# I am using python unittest for asserting cases.
class TestDownloadFile(Browser):
def test_download(self):
page = Selenium_Playground_Page(self.driver)
download_file = page.download("How to download files using Selenium & Python?")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment