These are chat archives for Behat/Behat

Nov 2017
Nov 08 2017 09:52
I'm french then excuse my french
I have some problem with one of my scenarios
I want to click to an icon in a link
like that
<a href="javascript:void(0)" class="addLigneArticle" rel="articleTermeFixe"><i class="icon-plus"></i></a>
I wrote this scenario line
"And I click the "a[rel='articleTermeFixe'] > .icon-plus" element
But it doesn't work
I'm wondering the way to pass it from success
how to click into an icon inside a link referenced by it rel attribute ?
Anyone can help me please ?
Nov 08 2017 12:11
If you go into chrome to the element in inspect element. You can do right mouse click and copy full path
Maybe that will work
Nov 08 2017 15:35
Quick question, maybe trivial, but I don't know
I am implementing a new field handler
how do I make the drupal driver pick up my handler if I have it on my code
in other words, how to extend the field handlers
this is the code for it: NodeReferenceHandler.php

namespace Drupal\Driver\Fields\Drupal7;

 * Nodereference field handler for Drupal 7.
class NodereferenceHandler extends AbstractHandler {

   * {@inheritdoc}
  public function expand($values) {
    $entity_type = 'node';
    $entity_info = entity_get_info($entity_type);
    $return = array();
    foreach ($values as $value) {
      $nid = db_select($entity_info['base table'], 't')
        ->fields('t', array($entity_info['entity keys']['id']))
        ->condition('t.' . $entity_info['entity keys']['label'], $value)
      if ($nid) {
        $return[$this->language][] = array('nid' => $nid);
    return $return;