You are here

public function MediaBrowserContext::selectN in Lightning Media 8.3

Same name and namespace in other branches
  1. 8 tests/contexts/MediaBrowserContext.behat.inc \Acquia\LightningExtension\Context\MediaBrowserContext::selectN()
  2. 8.2 tests/contexts/MediaBrowserContext.behat.inc \Acquia\LightningExtension\Context\MediaBrowserContext::selectN()

Selects an item from the media browser.

@When I select item :n in the media browser

Parameters

int $n: The one-based index of the item to select.

File

tests/contexts/MediaBrowserContext.behat.inc, line 111

Class

MediaBrowserContext
Contains step definitions for interacting with Lightning's media browser.

Namespace

Acquia\LightningExtension\Context

Code

public function selectN($n) {
  $this
    ->getContext(EntityBrowserContext::class)
    ->select($n, 'media_browser');
}