Skip to content

Chromium Command Line Arguments - PDF Viewer #460

@guirociozanini

Description

@guirociozanini

What are you trying to achieve? (Expected behavior)

I'am trying to add a argument to not see pdf files, just download it-

What do you get instead? (Actual behavior)

I can't find the argument to configure the browser

        $caps = DesiredCapabilities::chrome();
        $options = new ChromeOptions();
        $options->addArguments(array(
            '--disable-pdf-viewer',
        ));
        $caps->setCapability(ChromeOptions::CAPABILITY, $options);

Details

  • PHP version: 7
  • Operating system: Ubuntu 17.04
  • Browser used + version: Chromium 60

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions