public function VarbaseContext::iClickTheEditorMediaBrowserCommandButton 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::iClickTheEditorMediaBrowserCommandButton()
- 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iClickTheEditorMediaBrowserCommandButton()
- 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iClickTheEditorMediaBrowserCommandButton()
- 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iClickTheEditorMediaBrowserCommandButton()
- 9.0.x tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iClickTheEditorMediaBrowserCommandButton()
#varbase : Click the editor media browser command button
Example 1: When I click the editor media browser command button
@When /^I click the editor media browser command button$/
File
- tests/
features/ bootstrap/ VarbaseContext.php, line 218
Class
- VarbaseContext
- Defines application features from the specific context.
Code
public function iClickTheEditorMediaBrowserCommandButton() {
$element = $this
->getSession()
->getPage();
$editorMediaBrowserButton = $this
->getSession()
->getPage()
->find('css', '.cke_button.cke_button__media');
if (empty($editorMediaBrowserButton)) {
throw new Exception('The editor media browser button dose not exist.');
}
$editorMediaBrowserButton
->click();
}