Skip to main content
Version: 1.x

Interface: ProxyMethodCall

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[]


target​

readonly target: string


type​

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