Custom element type
Type of key value
Type representing DataProvider-valued properties of the custom element type
The OjWebElement whose properties reference the DataProvider
The property name within the element identifying the DataProvider
A FilterDef used to locate the record within the DataProvider
The key of the matching record
Fetch a key from a SelectSingle DataProvider by filtering for a DepartmentName
import { fetchKeyByFilter } from '@oracle/oraclejet-webdriver';
import { ojSelectSingle as JetSelectSingle } from '@oracle/oraclejet/ojselectsingle';
const ss1 = await ojSelectSingle(driver, By.id('department-select'));
const key = fetchKeyByFilter<JetSelectSingle<string,any>,string>(ss1, 'data', {
op: '$eq',
value: { DepartmentName: 'Finance' }
});
await ss1.changeValue(key);
Generated using TypeDoc
Get the key for the record filtered by filterDef. If exactly one record is found after filtering is applied, the key of that record is returned. An error is thrown if, after filtering: