You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
Trying to configure BDD with Behat using Selenium and Chrome. I have a blank install with the default site as per documentation. My installed_extras is set to:
The docs for selenium install are broken, see issue #1304. This however seems to be a problem with the drupal install, thats why i tried to verify that the selenium install would be working at least in a standalone setup with behat. So I created a minimum install as per behat docs. I also added mink and selenium2 driver.
<?php
use Behat\Behat\Context\Context;
use Behat\Behat\Context\SnippetAcceptingContext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use Behat\MinkExtension\Context\MinkContext;
/**
* Defines application features from the specific context.
*/
class FeatureContext extends MinkContext
{
/**
* Initializes context.
*
* Every scenario gets its own context instance.
* You can also pass arbitrary arguments to the
* context constructor through behat.yml.
*/
public function __construct()
{
}
}
and HomeContent.feature:
Feature: Index
I see welcome message on index page
And can navigate to registration from here
@javascript
Scenario: Proceed with registering
Given I am on "http://www.github.com/"
Then I should see "Learn Git"
When I run behat, it shows the following error:
vagrant@drupalvm:/var/www/drupalvm/behat_standalone$ behat
Feature: Index
I see welcome message on index page
And can navigate to registration from here
@javascript
Scenario: Proceed with registering # features/HomeContent.feature:6
Given I am on "http://www.github.com/" # FeatureContext::visit()
Could not open connection: chrome not reachable
(Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.4.0-62-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 114.33 seconds
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'drupalvm', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-62-generic', java.version: '1.8.0_121'
Driver info: org.openqa.selenium.chrome.ChromeDriver (Behat\Mink\Exception\DriverException)
Then I should see "Learn Git" # FeatureContext::assertPageContainsText()
--- Failed scenarios:
features/HomeContent.feature:6
1 scenario (1 failed)
2 steps (1 failed, 1 skipped)
1m54.41s (8.70Mb)
The text was updated successfully, but these errors were encountered:
Currently chromedriver may or may not be working—I burned about 20 hours trying to get it to work correctly and eventually gave up. Sometime recently it started blowing up. Please use the upstream issue arknoll/ansible-role-selenium#37 for any follow-up (or other existing issues in that queue).
Issue Type
Environment
OS
Summary
Trying to configure BDD with Behat using Selenium and Chrome. I have a blank install with the default site as per documentation. My installed_extras is set to:
The docs for selenium install are broken, see issue #1304. This however seems to be a problem with the drupal install, thats why i tried to verify that the selenium install would be working at least in a standalone setup with behat. So I created a minimum install as per behat docs. I also added mink and selenium2 driver.
My composer.json:
My behat.yml:
FeatureContext.php:
and HomeContent.feature:
When I run behat, it shows the following error:
The text was updated successfully, but these errors were encountered: