-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
[SETUP ISSUE] Invalid Chrome binary #763
Comments
HI @Dev-Ditrict-Web, Thank you for taking the time to open an issue and report the details.
You're using version 4 of wp-browser, that guide is applicable to version Is Chrome installed in the machine (the VM/container in this case) running wp-browser? Is it available in the The |
Hi @lucatume, Thanks for your follow up. Ok and there is newer tutorials on how to setup with the new version? It used to work : https://github.com/orgs/ddev/discussions/4459 But I guess I'll look into adding a chromium or ggole-chrome in the containers. I'll look into that. |
I add Selenium Standalone Chrome: ddev add-on get ddev/ddev-selenium-standalone-chrome. in my ddev containers. Still the wp-browser gives me the same error. |
@Dev-Ditrict-Web thanks for taking a further look. I've done my own research and found the I'm tracking the changes in the
With that, I could run the setup opting out of the default configuration. To be able to use the default configuration, I've updated the project - # webimage_extra_packages: [php7.4-tidy, php-bcmath]
+ webimage_extra_packages: [chromium, net-tools] And could run the setup using the default configuration successfully after that I will update this issue with findings when I find out what is throwing Chromedriver off. |
I could set up things using the default configuration and run the - # webimage_extra_packages: [php7.4-tidy, php-bcmath]
+ webimage_extra_packages: [chromium, net-tools, chromium-driver] After doing this I've re-built the namespace: Tests
support_namespace: Support
paths:
tests: tests
output: tests/_output
data: tests/Support/Data
support: tests/Support
envs: tests/_envs
actor_suffix: Tester
params:
- tests/.env
extensions:
enabled:
- Codeception\Extension\RunFailed
- lucatume\WPBrowser\Extension\ChromeDriverController
- lucatume\WPBrowser\Extension\BuiltInServerController
config:
lucatume\WPBrowser\Extension\ChromeDriverController:
port: '%CHROMEDRIVER_PORT%'
+ binary: '%CHROMEDRIVER_BINARY%'
lucatume\WPBrowser\Extension\BuiltInServerController:
workers: 5
port: '%BUILTIN_SERVER_PORT%'
docroot: '%WORDPRESS_ROOT_DIR%'
env:
DATABASE_TYPE: sqlite
DB_ENGINE: sqlite
DB_DIR: '%codecept_root_dir%/tests/Support/Data'
DB_FILE: db.sqlite
WPBROWSER_SITEURL: '%WORDPRESS_URL%'
WPBROWSER_HOMEURL: '%WORDPRESS_URL%'
commands:
- lucatume\WPBrowser\Command\RunOriginal
- lucatume\WPBrowser\Command\RunAll
- lucatume\WPBrowser\Command\GenerateWPUnit
- lucatume\WPBrowser\Command\DbExport
- lucatume\WPBrowser\Command\DbImport
- lucatume\WPBrowser\Command\MonkeyCachePath
- lucatume\WPBrowser\Command\MonkeyCacheClear
- lucatume\WPBrowser\Command\DevStart
- lucatume\WPBrowser\Command\DevStop
- lucatume\WPBrowser\Command\DevInfo
- lucatume\WPBrowser\Command\DevRestart
- lucatume\WPBrowser\Command\ChromedriverUpdate I've defined that in the # The path to the WordPress root directory, the one containing the wp-load.php file.
# This can be a relative path from the directory that contains the codeception.yml file,
# or an absolute path.
WORDPRESS_ROOT_DIR=.
# Tests will require a MySQL database to run.
# The database will be created if it does not exist.
# Do not use a database that contains important data!
WORDPRESS_DB_URL=sqlite://%codecept_root_dir%/tests/Support/Data/db.sqlite
# The Integration suite will use this table prefix for the WordPress tables.
TEST_TABLE_PREFIX=test_
# This table prefix used by the WordPress site in end-to-end tests.
WORDPRESS_TABLE_PREFIX=wp_
# The URL and domain of the WordPress site used in end-to-end tests.
WORDPRESS_URL=http://localhost:15723
WORDPRESS_DOMAIN=localhost:15723
WORDPRESS_ADMIN_PATH=/wp-admin
# The username and password of the administrator user of the WordPress site used in end-to-end tests.
WORDPRESS_ADMIN_USER=admin
WORDPRESS_ADMIN_PASSWORD=password
# The host and port of the ChromeDriver server that will be used in end-to-end tests.
+ CHROMEDRIVER_BINARY=/usr/bin/chromedriver
CHROMEDRIVER_HOST=localhost
CHROMEDRIVER_PORT=42706
# The port on which the PHP built-in server will serve the WordPress installation.
BUILTIN_SERVER_PORT=15723 Note: I could only run end-to-end tests reliably on my x86 machine; Linux on arm64 does work, but does so intermittently due to communication issues between Chromium and Chromedriver. I suspect this is due to the fact that Linux on ARM64 is not supported. |
I've merged #766 and released that in version |
Hi @lucatume, Thanks for the merge! I'll test that right away |
it did install properly. @lucatume Thanks! |
Excellent, thanks @Dev-Ditrict-Web for the confirmation. Should you run into other problems, open a new issue. |
Version 3.5
If you're opening an issue to report a breakage caused by version
3.5
; please read the migration guide first first!Environment
OS: Mac
PHP version: 8.2
Installed Codeception version: 5.1.2
Installed wp-browser version: 4.3
WordPress version: 6.6.2
Local development environment: DDEV (like VVV) docker containers
WordPress structure and management: default
Did you use the
codecept init wpbrowser
command?Yes
Did you take a look at Codeception and wp-browser documentation?
I followed https://wpbrowser.wptestkit.dev/v3/tutorials/vvv-setup/#bootstrapping-and-configuring-wp-browser and when I init 'vendor/bin/codecept init wpbrowser' it breaks almost instantly with a error Chrome binary not executable or not existing
Codeception configuration file
not able to complete
Describe the issue you're encountering
I'm in a ddev environnement, and trying to configure wp-browser to work with my plugin. I followed https://wpbrowser.wptestkit.dev/v3/tutorials/vvv-setup/#bootstrapping-and-configuring-wp-browser and when I init 'vendor/bin/codecept init wpbrowser' it breaks almost instantly with a error Chrome binary not executable or not existing
Output
To Reproduce
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: