Skip to content
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

[1.x] Support environment variable DUSK_START_MAXIMIZED for Chromedriver #26

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

derekmd
Copy link
Owner

@derekmd derekmd commented Dec 28, 2022

CI environments such as GitHub Actions can set DUSK_START_MAXIMIZED=true to open the web browser without needing to set an exact width x height.

  • This only works for Google Chrome as --start-maximized is a capability option only supported by Chromedriver.
  • Geckodriver will still require calling $browser->maximize() within the test after the Mozilla Firefox browser window is created.

Apps must call php artisan dusk:install-firefox --with-chrome to copy the updated file stub with the new feature.

CI environments such as GitHub Actions can set DUSK_START_MAXIMIZED=true
to open the web browser without needing to set an exact widthxheight.
@derekmd derekmd force-pushed the feat/start-maximized-env-var branch from eafa53d to 8cea2fa Compare February 10, 2023 01:31
@derekmd derekmd changed the title [1.x] Support environment variable DUSK_START_MAXIMIZED [1.x] Support environment variable DUSK_START_MAXIMIZED for Chromedriver Feb 10, 2023
@derekmd derekmd marked this pull request as ready for review February 10, 2023 01:31
@derekmd derekmd merged commit 73681b2 into 1.x Feb 10, 2023
@derekmd derekmd deleted the feat/start-maximized-env-var branch February 10, 2023 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant