try {
$this->should_be_visible($element, $selectortype);
- throw new ExpectationException('"' . $element . '" "' . $selectortype . '" is visible', $this->getSession());
} catch (ExpectationException $e) {
// All as expected.
+ return;
}
+ throw new ExpectationException('"' . $element . '" "' . $selectortype . '" is visible', $this->getSession());
}
/**
try {
$this->in_the_should_be_visible($element, $selectortype, $nodeelement, $nodeselectortype);
- throw new ExpectationException(
- '"' . $element . '" "' . $selectortype . '" in the "' . $nodeelement . '" "' . $nodeselectortype . '" is visible',
- $this->getSession()
- );
} catch (ExpectationException $e) {
// All as expected.
+ return;
}
+ throw new ExpectationException(
+ '"' . $element . '" "' . $selectortype . '" in the "' . $nodeelement . '" "' . $nodeselectortype . '" is visible',
+ $this->getSession()
+ );
}
/**
$exception,
false
);
-
- throw new ExpectationException('The "' . $element . '" "' . $selectortype . '" exists in the current page', $this->getSession());
} catch (ElementNotFoundException $e) {
// It passes.
return;
}
+
+ throw new ExpectationException('The "' . $element . '" "' . $selectortype .
+ '" exists in the current page', $this->getSession());
}
/**
// but we would need to duplicate the whole find_all() logic to do it, the benefit of
// changing to 1 second sleep is not significant.
$this->find($selector, $locator, false, $containernode, self::REDUCED_TIMEOUT);
- throw new ExpectationException('The "' . $element . '" "' . $selectortype . '" exists in the "' .
- $containerelement . '" "' . $containerselectortype . '"', $this->getSession());
} catch (ElementNotFoundException $e) {
// It passes.
return;
}
+ throw new ExpectationException('The "' . $element . '" "' . $selectortype . '" exists in the "' .
+ $containerelement . '" "' . $containerselectortype . '"', $this->getSession());
}
/**
public function row_column_of_table_should_not_contain($row, $column, $table, $value) {
try {
$this->row_column_of_table_should_contain($row, $column, $table, $value);
- // Throw exception if found.
- throw new ExpectationException(
- '"' . $column . '" with value "' . $value . '" is present in "' . $row . '" row for table "' . $table . '"',
- $this->getSession()
- );
} catch (ElementNotFoundException $e) {
// Table row/column doesn't contain this value. Nothing to do.
return;
}
+ // Throw exception if found.
+ throw new ExpectationException(
+ '"' . $column . '" with value "' . $value . '" is present in "' . $row . '" row for table "' . $table . '"',
+ $this->getSession()
+ );
}
/**
try {
$this->row_column_of_table_should_contain($row, $column, $table, $value);
// Throw exception if found.
- throw new ExpectationException('"' . $column . '" with value "' . $value . '" is present in "' .
- $row . '" row for table "' . $table . '"', $this->getSession()
- );
} catch (ElementNotFoundException $e) {
// Table row/column doesn't contain this value. Nothing to do.
continue;
}
+ throw new ExpectationException('"' . $column . '" with value "' . $value . '" is present in "' .
+ $row . '" row for table "' . $table . '"', $this->getSession()
+ );
}
}
}