Web Interactions - command line arguments

Hello

Is it possible to find out how to use the command line arguments to change some configuration values?

Or post any example that works using parameters, and then maybe I can understand how the command line arguments are interpreted by the node.

I’ve reviewed without success
https://peter.sh/experiments/chromium-command-line-switches/

Main problem is the pdf files are opened instead of downloaded.

It works if I start the interaction, then i type on the chrome instance:
chrome://settings/content/pdfDocuments
set the value
and then continue the process.

The json values can be displayed using:
chrome://prefs-internals

The target configurations are:
plugins always_open_pdf_externally - change from false to true
savefile: default_directory

something like 🎛️ Command Line Options - SeleniumBase Docs

Thanks

Hey @ricknime,

I can not say for sure but generally you can use CLI commands as you mentioned here. → Simply add your disired CLI in the “Addtional Arguments” parameter:

But setting prefs like plugins.always_open_pdf_externally: True are NOT CLI commands.

An example of how they are implemented for chrome with python:

...
prefs = {
    "plugins.always_open_pdf_externally": True
}
...
chrome_options.add_experimental_option("prefs", prefs)

Therefore I think it is (unfortunately) not possible to set these preferences.

Kind regards :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.