Skip to content

Instantly share code, notes, and snippets.

@spolischook
Last active November 3, 2016 18:49
Show Gist options
  • Save spolischook/68283e0ea7c2d0560f61a29b91248f90 to your computer and use it in GitHub Desktop.
Save spolischook/68283e0ea7c2d0560f61a29b91248f90 to your computer and use it in GitHub Desktop.
<?php
namespace Oro\Bundle\ConfigBundle\Tests\Behat\Element;
use Behat\Mink\Element\NodeElement;
use Oro\Bundle\TestFrameworkBundle\Behat\Element\Element;
class SidebarConfigMenu extends Element
{
public function clickLink($locator)
{
$this->find('css', 'a[data-action="accordion:expand-all"]')->click();
$link = $this->findLink($locator);
$link->waitFor(1500, function (NodeElement $link) {
return $link->isVisible();
});
$link->click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment