Skip to main content

Interface: ProxyMethodCall

Defined in: src/fe/types.ts:80

Captured method call from the Given/When/Then proxy chain.

Remarks​

Each call records the OPA5 scope type, target page, and method chain. The accessor flag distinguishes property access from function calls.

Example​

// When.onTheMainPage.onFilterBar().iChangeSearchField('x')
const call: ProxyMethodCall = {
type: 'When',
target: 'onTheMainPage',
methods: [
{ name: 'onFilterBar', accessor: false },
{ name: 'iChangeSearchField', args: ['x'], accessor: false },
],
};

Properties​

methods​

readonly methods: readonly object[]

Defined in: src/fe/types.ts:83


target​

readonly target: string

Defined in: src/fe/types.ts:82


type​

readonly type: "Given" | "When" | "Then"

Defined in: src/fe/types.ts:81