public function VarbaseContext::theImageMediaBrowserIsOpen in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.7
Same name and namespace in other branches
- 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theImageMediaBrowserIsOpen()
- 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theImageMediaBrowserIsOpen()
- 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theImageMediaBrowserIsOpen()
- 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theImageMediaBrowserIsOpen()
- 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.');
}
}