Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature to start the browser in fullscreen mode (
--start-fullscreen
) and includes tests and documentation for the functionality. Changes span across multiple files to integrate the feature into the SeleniumBase framework, add support for the new command-line option, and provide examples of its usage.Integration of fullscreen functionality:
seleniumbase/core/browser_launcher.py
: Added thestart_fullscreen
parameter to several functions (_set_chrome_options
,get_driver
,get_local_driver
) and updated logic to handle fullscreen mode using browser-specific arguments (--start-fullscreen
and--kiosk
for Linux). [1] [2] [3] [4] [5] [6] [7]Addition of command-line option for fullscreen:
seleniumbase/plugins/pytest_plugin.py
: Introduced the--start-fullscreen
option inpytest_addoption
and updatedpytest_configure
to store its value insb_config
. [1] [2]seleniumbase/plugins/selenium_plugin.py
: Added support for the--start-fullscreen
option inoptions
and passed its value to tests viabeforeTest
. [1] [2]Test cases and documentation:
examples/fullscreen_validation.py
: Added a comprehensive test class (TestFullscreenValidation
) to validate fullscreen functionality and document its usage with examples and ideal use cases.examples/simple_fullscreen_test.py
: Created a standalone script for testing fullscreen mode without relying onBaseCase
.Framework updates:
seleniumbase/fixtures/base_case.py
: Addedstart_fullscreen
to thesetUp
method to enable fullscreen mode for tests usingBaseCase
.