File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments