You are here

public function VarbaseContext::theImageMediaBrowserIsOpen in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.5

Same name and namespace in other branches
  1. 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theImageMediaBrowserIsOpen()
  2. 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theImageMediaBrowserIsOpen()
  3. 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theImageMediaBrowserIsOpen()
  4. 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theImageMediaBrowserIsOpen()
  5. 9.0.x tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theImageMediaBrowserIsOpen()

#varbase: To check if the Image media browser opened.

Example : Then the image media browser should be open

@Then /^the image media browser should be open$/

File

tests/features/bootstrap/VarbaseContext.php, line 1403

Class

VarbaseContext
Defines application features from the specific context.

Code

public function theImageMediaBrowserIsOpen() {
  if (!($elem = $this
    ->getSession()
    ->getPage()
    ->find('css', '.ui-dialog.ui-widget-content'))) {
    throw new Exception('The image media browser failed to open.');
  }
}