You are here

public function FeatureContext::iChooseAnImage in Bear 7

@When I choose an image @When I choose a video

File

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

Class

FeatureContext
Defines application features from the specific context.

Code

public function iChooseAnImage() {
  $this
    ->getSession()
    ->getPage()
    ->find("css", "#media-browser-library-list li img")
    ->click();
  $this
    ->getSession()
    ->wait(3000, 'false');
}