Skip to content

Instantly share code, notes, and snippets.

@rahulmr
Forked from SarahElson/test_download_file.py
Created September 28, 2022 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulmr/9cab55e5ee5559a8bee9280f1910980f to your computer and use it in GitHub Desktop.
Save rahulmr/9cab55e5ee5559a8bee9280f1910980f 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