Skip to content

Interface: ISessionCommands

@appium/types.ISessionCommands

Hierarchy

  • ISessionCommands

Driver

Table of contents

Methods

Methods

getSession

getSession<C>(): Promise<SingularSessionData<C>>

Get the data for the current session

Type parameters

Name Type
C extends Constraints

Returns

Promise<SingularSessionData<C>>

A session data object

Defined in

node_modules/@appium/types/lib/driver.ts:173


getSessions

getSessions(): Promise<MultiSessionData<Constraints>[]>

Get data for all sessions running on an Appium server

Returns

Promise<MultiSessionData<Constraints>[]>

A list of session data objects

Defined in

node_modules/@appium/types/lib/driver.ts:166