panther icon indicating copy to clipboard operation
panther copied to clipboard

Test files upload

Open Damienbelingheri opened this issue 3 years ago • 1 comments

Hi, I would like to test the content of downloaded file as a pdf, for exemple

I have seen here (#189) that there is some hacks but can't reproduce them. I tried to make direct access to the url but it doesn't keep the login context.

Can I have some examples, please ?

Thank you

Damienbelingheri avatar Mar 09 '21 15:03 Damienbelingheri

Here is an example with Chrome:

$chromeOptions = new ChromeOptions();
$prefs = [
    'download.default_directory' => '/tmp/foobar',
    'download.prompt_for_download' => 'false',
];
$chromeOptions->setExperimentalOption('prefs', $prefs);

$this->client = static::createPantherClient([],
[],
[
    'capabilities' => [
        ChromeOptions::CAPABILITY => $chromeOptions,
    ],
]);

Vincz avatar Mar 11 '21 11:03 Vincz