selenium - I can't connect to my site -
i've started playing around behat, , loving it. shut down computer , went home day , when came back, nothing worked me anymore!! i've been trying trouble shoot couple of days, looks configurations vary widely, can't find works me. i'm getting following error
given on homepage # drupal\drupalextension\context\minkcontext::iamonhomepage() not open connection: curl error thrown http post http://localhost:4444/wd/hub/session params: {"desiredcapabilities":{"tags":["rio","php 5.5.9-1ubuntu4.9"],"browser":"firefox","version":"14","ignorezoomsetting":false,"name":"behat feature suite","browsername":"firefox"}} requested url returned error: 500 server error (behat\mink\exception\driverexception)
i've got behat.yml file setup such:
default: default: suites: default: contexts: - featurecontext - drupal\drupalextension\context\drupalcontext - drupal\drupalextension\context\minkcontext extensions: behat\minkextension: base_url: http://localhost:80/vic goutte: ~ default_session: selenium2 browser_name: 'firefox' selenium2: capabilities: { "browser": "firefox", "version": "14"} javascript_session: selenium2 drupal\drupalextension: blackbox: ~ drush: root: /var/www/html/vic api_driver: 'drupal' drupal: drupal_root: '/var/www/html/vic'
like said, working fine. don't know why stopped. error weird me too. base url doesn't seem registering , have no idea why it's pulling port 4444 or going folder structure wd/hub/session. i'm @ real loss one. or insight can provide hugely appreciated!!
some background. i'm running on local machine on local environment. i'm on linux box. base url works me in browser, behat can't seem reach it, , it's adding weird port (should 80), , path. worked other day, , nothing has changed other reboot (so need start service or something)?
found answer. make sure selenium running first.
java -jar selenium-server-standalone-2.45.0.jar (make sure version right)
once it's running it'll give connection info, make sure matches in behat.yml
extensions: behat\minkextension: base_url: http://localhost:80 goutte: ~ javascript_session: selenium2 default_session: selenium2 browser_name: 'firefox' selenium2: capabilities: { "browser": "firefox", "version": "14"} wd_host: http://127.0.0.1:4444/wd/hub
^^ pointing wd_host selenium instance
Comments
Post a Comment