public function VarbaseContext::iDoubleClick in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.6
Same name and namespace in other branches
- 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iDoubleClick()
- 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iDoubleClick()
- 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iDoubleClick()
- 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iDoubleClick()
- 9.0.x tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iDoubleClick()
#varbase: To double click on an element.
Example: When I move the mouse over "#select .option-switch"
@When /^I double click "([^"]*)"$/
File
- tests/
features/ bootstrap/ VarbaseContext.php, line 792
Class
- VarbaseContext
- Defines application features from the specific context.
Code
public function iDoubleClick($selector) {
$elem = $this
->getSession()
->getPage()
->find('css', $selector);
if ($elem) {
$elem
->doubleClick();
}
else {
throw new Exception("No element matching \"{$selector}\" is found.");
}
}