-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust the size of the window/screenshot #428
Comments
Hey there, had the same problem. Just add |
Hey, I'm facing the same issue! Could you give us a code example of where chrome arguments go, @marco-kretz ? Thanks! |
I'm just using env-vars for this. That's what I have in my .env:
|
Ahh, I see! Thank you! I'll try this! |
That TOTALLY works! May be in the future we can configure these arguments somewhere within the panther client creation (or a panther.xml.dist file or similar in our projects!) |
I see! May be this is not apparent from If I do: $this->client = static::createPantherClient(
['external_base_uri' => 'https://localhost:8000'],
['HTTPS' => true],
['capabilities' => [
'acceptInsecureCerts' => true,
]],
); Because I want to use an external server with https, then I need to figure out how this translates to the |
From panther's source code: if (static::CHROME === $browser) {
self::$pantherClients[0] = self::$pantherClient = Client::createChromeClient(null, null, $managerOptions, self::$baseUri);
} else {
self::$pantherClients[0] = self::$pantherClient = Client::createFirefoxClient(null, null, $managerOptions, self::$baseUri);
} May be we need to accept browser arguments from within |
It would appear by looking at the source code (if I'm not wrong) that if I call |
I haven't tested Chrome; it's taken from symfony#428 (which can be closed now IMO) Firefox works for me; it's taken from https://stackoverflow.com/a/64374604/1668200
I tried sth like:
But the size of the screenshot doesn't change 🤔
The text was updated successfully, but these errors were encountered: