@@ -933,7 +933,7 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
if(preg_match($regex,$actual)){
$found=TRUE;
break;
break;
}
}
if(!$found){
...
...
@@ -951,6 +951,49 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
}
}
/**
* Check if we do not have the text in the selected element.
*
* Varbase Context #varbase.
*
* Example #1: Then I should not see "your text" in the "ol" element with the "class" attribute set to "breadcrumb"
* Example #2: And I should not see "your text" in the "div" element with the "id" attribute set to "right-panel"
*
* @Then /^I should not see "(?P<text>[^"]*)" in the "(?P<htmlTagName>[^"]*)" element with the "(?P<attribute>[^"]*)" attribute set to "(?P<value>[^"]*)"$/