{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/481","repository_url":"https://api.github.com/repos/geerlingguy/drupal-vm","labels_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/481/comments","events_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/481/events","html_url":"https://github.com/geerlingguy/drupal-vm/issues/481","id":137093746,"number":481,"title":"Installing ChromeDriver on VM","user":{"login":"justinlevi","id":1117989,"avatar_url":"https://avatars.githubusercontent.com/u/1117989?v=3","gravatar_id":"","url":"https://api.github.com/users/justinlevi","html_url":"https://github.com/justinlevi","followers_url":"https://api.github.com/users/justinlevi/followers","following_url":"https://api.github.com/users/justinlevi/following{/other_user}","gists_url":"https://api.github.com/users/justinlevi/gists{/gist_id}","starred_url":"https://api.github.com/users/justinlevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinlevi/subscriptions","organizations_url":"https://api.github.com/users/justinlevi/orgs","repos_url":"https://api.github.com/users/justinlevi/repos","events_url":"https://api.github.com/users/justinlevi/events{/privacy}","received_events_url":"https://api.github.com/users/justinlevi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-28T20:40:06Z","updated_at":"2016-02-29T00:16:43Z","closed_at":null,"body":"Following these instructions I was able to get Selenium & the Chrome Driver to work with my Behat Tests on the VM\r\n\r\n```\r\nsudo apt-get install libxss1 libappindicator1 libindicator7\r\nwget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb\r\n\r\nsudo dpkg -i google-chrome*.deb\r\nsudo apt-get install -f\r\nsudo apt-get install xvfb\r\nsudo apt-get install unzip\r\n\r\nwget -N http://chromedriver.storage.googleapis.com/2.20/chromedriver_linux64.zip\r\nunzip chromedriver_linux64.zip\r\nchmod +x chromedriver\r\n\r\nsudo mv -f chromedriver /usr/local/share/chromedriver\r\nsudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver\r\nsudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver\r\nsudo apt-get install python-pip\r\n```\r\nsource: http://christopher.su/2015/selenium-chromedriver-ubuntu/\r\n\r\nI'm wondering if it would be helpful to turn this into an ansible recipe? I found this url but this is a bit over my head..\r\n\r\nhttp://coryklein.com/ansible/2015/10/09/using-ansible-to-install-google-chrome.html\r\n\r\nMay try to figure this out but thought I'd ask first to see if anyone thinks this is a really bad idea for some reason. I'm was tried installing the firefox browser too but was getting weird selenium errors when trying to run my behat tests\r\n\r\n\r\nHere's my behat.yml file for reference: \r\n```yaml\r\ndefault:\r\n  formatters:\r\n    pretty: true\r\n    progress: true\r\n  gherkin:\r\n    filters:\r\n      tags: \"~@skip\"\r\n  suites:\r\n    default:\r\n      contexts:\r\n        - behatch:browser\r\n        - behatch:debug\r\n        - behatch:system\r\n        - behatch:json\r\n        - behatch:table\r\n        - behatch:rest\r\n        - behatch:xml\r\n        - FeatureContext\r\n        - Drupal\\DrupalExtension\\Context\\DrupalContext\r\n        - Drupal\\DrupalExtension\\Context\\MinkContext\r\n        - Drupal\\DrupalExtension\\Context\\MessageContext\r\n        - Drupal\\DrupalExtension\\Context\\DrushContext\r\n  extensions:\r\n    Sanpi\\Behatch\\Extension: ~\r\n    Behat\\MinkExtension:\r\n      base_url: http://ss.vm\r\n      browser_name: 'chrome'\r\n      goutte: ~\r\n      selenium2:\r\n        wd_host: \"http://127.0.0.1:4444/wd/hub\"\r\n    Drupal\\DrupalExtension:\r\n      blackbox: ~\r\n      api_driver: 'drupal'\r\n      drush:\r\n        alias: '@ss.vm'\r\n      drupal:\r\n        drupal_root: '/var/www/ss/docroot'\r\n      selectors:\r\n        message_selector: '.messages'\r\n        error_message_selector: '.messages.messages-error'\r\n        success_message_selector: '.messages.messages-status'\r\n```\r\n\r\nHere's the Behatch feature > Scenario I was testing from within PHPStorm\r\n```\r\nFeature: Homepage\r\n  In order to make sure the homepage isn't jacked\r\n  As a anonymous website user\r\n  I need to see a few key things\r\n\r\n  # Requires chrome driver installed based on these instructions\r\n  # http://christopher.su/2015/selenium-chromedriver-ubuntu/\r\n  # included in post-install.sh now though\r\n  @javascript\r\n  Scenario: Behatch Browser Test\r\n    Given I am on the homepage\r\n    When I hover \"#block-bartik-branding\"\r\n    Then I should see the text \"Home\"\r\n```\r\n\r\nAnd here's the working output\r\n```\r\nssh://vagrant@192.168.88.88:22/usr/bin/php /home/vagrant/.phpstorm_helpers/behat.php --format PhpStormBehatFormatter --config /var/www/ss/btests/behat.yml /var/www/ss/btests/features/Homepage/Homepage.feature:30\r\nTesting started at 3:27 PM ...\r\n\r\n1 scenario (1 passed)\r\n3 steps (3 passed)\r\n0m5.30s (29.47Mb)\r\n\r\nProcess finished with exit code 0\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/comments/189978196","html_url":"https://github.com/geerlingguy/drupal-vm/issues/481#issuecomment-189978196","issue_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/481","id":189978196,"user":{"login":"thom8","id":331453,"avatar_url":"https://avatars.githubusercontent.com/u/331453?v=3","gravatar_id":"","url":"https://api.github.com/users/thom8","html_url":"https://github.com/thom8","followers_url":"https://api.github.com/users/thom8/followers","following_url":"https://api.github.com/users/thom8/following{/other_user}","gists_url":"https://api.github.com/users/thom8/gists{/gist_id}","starred_url":"https://api.github.com/users/thom8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thom8/subscriptions","organizations_url":"https://api.github.com/users/thom8/orgs","repos_url":"https://api.github.com/users/thom8/repos","events_url":"https://api.github.com/users/thom8/events{/privacy}","received_events_url":"https://api.github.com/users/thom8/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T00:16:43Z","updated_at":"2016-02-29T00:16:43Z","body":"@oxyc happy to accept PR's on this fork but the long term plan will be to split out the browser install functionality into a seperate role(s) to give more flexibility and better test coverage."}}