geerlingguy / drupal-vm

A VM for Drupal development
https://www.drupalvm.com/
MIT License
1.37k stars 647 forks source link

Trouble getting selenium to run on drupal-vm #2006

Closed kay-o closed 4 years ago

kay-o commented 4 years ago

Issue Type

Bug Report / Support Request

Your Environment

$ vagrant --version && echo "VirtualBox `vboxmanage --version`" && ansible --version
Vagrant 2.2.6
VirtualBox 6.1.2r135662
-bash: ansible: command not found
$ pip3 list
Package           Version  
----------------- ---------
ansible           2.9.3

Your OS

macOS Mojave 10.14.6

Your version of Drupal-VM

cloned today; on master branch

commit fdd9ede23dbf11d9fcbfbe8ea69ece3e80b32135 (HEAD -> master, origin/master, origin/HEAD)
Author: Jeff Geerling <geerlingguy@mac.com>
Date:   Thu Jan 16 16:51:13 2020 -0600

Full console output

https://gist.github.com/kay-o/620c576457ccb092ca9f4fdc05981efd

Summary

Selenium would not start out of the box. Gist shows how I got it to start. I don't have a clear enough understanding of the various ins-and-outs to know whether this report is something that needs to be 'fixed' or if it just ends up being useful for others (me in the future) who run into it.

diff of config.yml

$ diff default.config.yml config.yml -C 3
*** default.config.yml  2020-01-19 16:52:46.000000000 -0500
--- config.yml  2020-01-19 16:52:57.000000000 -0500
***************
*** 71,76 ****
--- 71,77 ----
  drupal_composer_install_dir: "/var/www/drupalvm/drupal"
  drupal_composer_dependencies:
    - "drupal/devel:^1.2"
+   - "drupal/behat_ui @dev"

  # Set this to 'true' and 'drupal_build_makefile', 'drupal_build_composer' to 'false'
  # if you are using Composer's create-project as a site deployment strategy.
***************
*** 215,233 ****
    # - drupalconsole
    - drush
    # - elasticsearch
!   # - java
!   - mailhog
    # - memcached
    # - newrelic
!   # - nodejs
    - pimpmylog
    # - redis
    # - ruby
!   # - selenium
    # - solr
    # - tideways
    # - upload-progress
!   - varnish
    # - xdebug
    # - xhprof # use `tideways` if you're installing PHP 7+

--- 216,234 ----
    # - drupalconsole
    - drush
    # - elasticsearch
!   - java
!   # - mailhog
    # - memcached
    # - newrelic
!   - nodejs
    - pimpmylog
    # - redis
    # - ruby
!   - selenium
    # - solr
    # - tideways
    # - upload-progress
!   # - varnish
    # - xdebug
    # - xhprof # use `tideways` if you're installing PHP 7+

***************
*** 281,286 ****
--- 282,288 ----
  composer_home_group: "{{ drupalvm_user }}"
  composer_global_packages:
    - { name: hirak/prestissimo, release: '^0.3' }
+   - { name: drupal/drupal-extension, release: '*' }

  # Run specified scripts before or after VM is provisioned. Use {{ playbook_dir }}
  # to reference the provisioning/ folder in Drupal VM or {{ config_dir }} to
geerlingguy commented 4 years ago

I haven't noticed any issues with it last time I was running my Behat tests in Drupal VM, but I think I was using the Chrome integration and maybe not Selenium/webdriver...

geerlingguy commented 4 years ago

Yeah, I started using headless Chrome (see https://github.com/geerlingguy/drupal-vm/issues/1598#issuecomment-370532267 )—and probably recommend that over using selenium, since the upstream role this project uses hasn't been touched since March 2018...

stale[bot] commented 4 years ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale[bot] commented 4 years ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.