Skip to content

Instantly share code, notes, and snippets.

@ricbra
Created April 10, 2015 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricbra/c2a1b3a44b95580fa9e6 to your computer and use it in GitHub Desktop.
Save ricbra/c2a1b3a44b95580fa9e6 to your computer and use it in GitHub Desktop.
/**
* @When /^I click on toolbox item "([^"]*)"$/
*/
public function iClickOnToolBoxItem($locator)
{
$session = $this->getSession();
$page = $session->getPage();
$toolbox = $page->find('css', '.toolbox');
$nodes = $page->findAll('css', "a:contains('Versturen')");
var_dump($nodes);
/** @var \Behat\Mink\Element\NodeElement $node */
foreach ($nodes as $node) {
if (! $node->isVisible()) {
$toolbox->mouseOver();
$node->click();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment