You are here

public function FeatureContext::iChooseAnImageFromWYSIWYGMedia in Bear 7

@When I choose an image from WYSIWYG media @When I choose a video from WYSIWYG media

File

tests/features/bootstrap/FeatureContext.php, line 156

Class

FeatureContext
Defines application features from the specific context.

Code

public function iChooseAnImageFromWYSIWYGMedia() {
  $this
    ->getSession()
    ->getDriver()
    ->find("xpath", "//ul[@id='media-browser-library-list']/li/img")
    ->click();
}