Skip to content

Commit 1109a61

Browse files
committed
Add refactored test 1756769
1 parent 783e207 commit 1109a61

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/downloads/test_download_pdf.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,22 @@ def test_download_pdf(
2727
delete_files,
2828
):
2929
"""
30-
C1756769: Verify that the user can Download a PDF
30+
C1756769 - Verify that the user can Download a PDF
31+
32+
Notes:
33+
- Firefox is launched with a **new profile** that has default download settings.
34+
- This means the OS-level "Save File" dialog will appear for every download.
35+
- Selenium cannot interact with this native dialog directly, so the test
36+
must rely on fixed waits to give the OS time to render the dialog and to
37+
finish writing the file.
3138
"""
32-
pdf = GenericPdf(driver, pdf_url=fillable_pdf_url).open()
39+
40+
# Initialize objects
41+
pdf = GenericPdf(driver, pdf_url=fillable_pdf_url)
3342
keyboard = Controller()
3443

3544
# Click the download button
45+
pdf.open()
3646
download_button = pdf.get_element("download-button")
3747
download_button.click()
3848

0 commit comments

Comments
 (0)