kevinquillen
5/3/2016 - 3:50 PM

A Behat definition that will instruct the client to press a vertical tab, useful for forms leveraging Field Group in Drupal (Shiny admin the

A Behat definition that will instruct the client to press a vertical tab, useful for forms leveraging Field Group in Drupal (Shiny admin theme).

  /**
   * @When I press the :vertical_tab vertical tab
   * @param $vertical_tab
   */
  public function iPressTheVerticalTab($vertical_tab) {
    $this->getSession()->getDriver()->click('//*[contains(@class, "node-form")]/div/div[contains(@class, "vertical-tabs")]/ul/*/a/strong[text()="' . $vertical_tab . '"]');
  }