Skip to content

[Feature Request]: Add support for browser configuration options. #148

@thalissonvs

Description

@thalissonvs

Checklist before requesting

  • I have searched for similar feature requests and didn't find a duplicate.
  • I have checked the documentation to confirm this feature doesn't already exist.

Problem Statement

...

Proposed Solution

The proposed solution aims to provide a way to define browser preferences. In Selenium, this works as follows:

prefs = {
    'download.prompt_for_download': False,
    'download.directory_upgrade': True,
    'plugins.plugins_disabled': ['Chrome PDF Viewer'],
    'savefile.default_directory': self.root,
    'download.default_directory': self.root,
    'profile.default_content_settings.popups': 0,
    'profile.default_content_setting_values.automatic_downloads': 1,
    'plugins.always_open_pdf_externally': True,
}
options.add_experimental_option('prefs', prefs)

In Pydoll, the goal is to make things simpler and more intuitive to use. An initial research will be necessary to identify the most relevant browser settings available through the prefs dictionary, and then define individual properties for each configuration, as shown below:

options.always_open_pdf_externally = False
options.prompt_for_download = True
# etc

Alternatives Considered

No response

Additional Context

Here is the source file with all available preferences

Importance

Nice to have

Contribution

None

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions