Skip to content

Instantly share code, notes, and snippets.

View shanly-suepaul's full-sized avatar

Shanly Suepaul shanly-suepaul

View GitHub Profile
@shanly-suepaul
shanly-suepaul / useful_steps.php
Created February 4, 2014 20:42
Here are two step definitions you might find useful: 1) These two functions override the default "click" functionality to make them easier to use with the Drupal admin menu. (Ask me for more info). It also allows the page to finish loading in Safari/IE (which have worse support in Selenium than other browsers) 2) I break - this is already in Dru…
<?php
/**
* Add a custom named selector for links. The selector will not match strings
* that contain the search but are larger than the search.
* @BeforeScenario
*/
public function addLinkStrictNamedSelector($event)
{
$selectors = $this->getSession()->getSelectorsHandler();