Recall & Review
beginner
What is the purpose of Firefox profile in Selenium testing?
A Firefox profile stores user preferences, extensions, and settings. In Selenium, it helps customize browser behavior during tests, like disabling pop-ups or setting download folders.
Click to reveal answer
intermediate
How do you set a custom download folder in Firefox using Selenium Python?
You create a Firefox profile, set the preference 'browser.download.dir' to the folder path, and set 'browser.download.folderList' to 2 to use the custom folder.
Click to reveal answer
beginner
What is the role of FirefoxOptions in Selenium?
FirefoxOptions lets you configure Firefox browser settings like headless mode, binary location, and attaching a profile before starting the browser in Selenium tests.
Click to reveal answer
beginner
How can you run Firefox in headless mode using Selenium Python?
Use FirefoxOptions and call options.headless = True before passing it to the WebDriver. This runs Firefox without opening a visible window.
Click to reveal answer
intermediate
Why is it important to disable Firefox's default download dialog in automated tests?
Disabling the download dialog prevents tests from hanging or failing because the dialog waits for user interaction. Setting preferences to auto-download files ensures smooth automation.
Click to reveal answer
Which Firefox preference disables the download dialog to auto-save files in Selenium?
✗ Incorrect
Setting 'browser.helperApps.neverAsk.saveToDisk' with MIME types disables the download dialog and auto-saves files.
How do you apply a Firefox profile to the WebDriver in Selenium Python?
✗ Incorrect
You create a FirefoxProfile, set preferences, pass it to FirefoxOptions, then pass options to WebDriver.
What does setting 'browser.download.folderList' to 2 do?
✗ Incorrect
Value 2 tells Firefox to use the folder set in 'browser.download.dir' for downloads.
Which method enables headless mode in FirefoxOptions?
✗ Incorrect
In Selenium Python, you set 'options.headless = True' to run Firefox without GUI.
Why might you want to set 'browser.download.manager.showWhenStarting' to False?
✗ Incorrect
Setting it to False hides the download manager window, preventing test interruptions.
Explain how to configure Firefox to automatically download files to a specific folder in Selenium Python.
Think about preferences that control download folder and dialogs.
You got /5 concepts.
Describe how to run Firefox in headless mode using Selenium Python and why it is useful.
Focus on options and benefits of headless mode.
You got /5 concepts.