Page object representing a view container item in the activity bar

const workbench = await browser.getWorkbench()
const viewControls = await workbench.getActivityBar().getViewControls()
console.log(await Promise.all(viewControls.map((vc) => vc.getTitle())))
// returns: [
// 'Explorer',
// 'Search',
// 'Source Control',
// 'Run and Debug',
// 'Extensions'
// ]

Hierarchy (view full)

Constructors

Properties

attribute$: ChainablePromiseElement<Element>
attribute$$: ChainablePromiseArray<Element[]>
badge$: ChainablePromiseElement<Element>
badge$$: ChainablePromiseArray<Element[]>
debugId$: ChainablePromiseElement<Element>
debugId$$: ChainablePromiseArray<Element[]>
klass$: ChainablePromiseElement<Element>
klass$$: ChainablePromiseArray<Element[]>
scmId$: ChainablePromiseElement<Element>
scmId$$: ChainablePromiseArray<Element[]>

Accessors

  • get elem(): ChainablePromiseElement<Element>
  • Base element of given page object

    Returns ChainablePromiseElement<Element>

  • get parent(): ChainablePromiseElement<Element>
  • Parent element of given page object

    Returns ChainablePromiseElement<Element>

Methods

  • Returns the title of the associated view

    Parameters

    • includeKeyboardShortcuts: boolean = false

      if true it includes the keyboard shortcut in the title (e.g. "Source Control (Ctrl+Shift+G)")

    Returns Promise<string>

Generated using TypeDoc