Created
April 10, 2015 07:59
-
-
Save ricbra/c2a1b3a44b95580fa9e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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