wdi5: Cannot select appointments of Planning Calendar
Hi there I have and application to test that uses the planning calendar control.
I am stuck on getting all the appointments of a given row.
it("should show aggreates of planning calendar", async () => {
// I wait for a button to be clickable (which means that my app has loaded
const showBtn = await CL.getShowButton();
await browser.waitUntil(() => showBtn.$().isClickable());
// I get the planning calendar
const pc = await CL.getPlanningCalendar();
// I get aggregated rows
const rows = await pc.getAggregation("rows");
for (const row of rows) {
console.log(await row.getAggregation("appointments"));
//console.log(row.getControlInfo());
}
});
What I receive for each row is the following (when I run the above test):
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[364:11816:0513/000615.543:ERROR:device_event_log_impl.cc(214)] [00:06:15.543] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[364:11816:0513/000615.545:ERROR:device_event_log_impl.cc(214)] [00:06:15.544] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[364:11816:0513/000615.546:ERROR:device_event_log_impl.cc(214)] [00:06:15.545] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[364:11816:0513/000615.547:ERROR:device_event_log_impl.cc(214)] [00:06:15.546] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] undefined has no sReplFunctionNames
[0-0] [wdi5] call of getControl() failed because of: Error: No DOM element found using the control selector {"id":"__row0-__xmlview0--schedulePlanningCalendar-1"}
[0-0] [wdi5] __row0-__xmlview0--schedulePlanningCalendar-1 has no sReplFunctionNames
[0-0] [wdi5] call of getControl() failed because of: Error: No DOM element found using the control selector {"id":"__row0-__xmlview0--schedulePlanningCalendar-2"}
[0-0] [wdi5] __row0-__xmlview0--schedulePlanningCalendar-2 has no sReplFunctionNames
[0-0] [wdi5] call of getControl() failed because of: Error: No DOM element found using the control selector {"id":"__row0-__xmlview0--schedulePlanningCalendar-3"}
[0-0] [wdi5] __row0-__xmlview0--schedulePlanningCalendar-3 has no sReplFunctionNames
[0-0] [wdi5] call of getControl() failed because of: Error: No DOM element found using the control selector {"id":"__row0-__xmlview0--schedulePlanningCalendar-4"}
[0-0] [wdi5] __row0-__xmlview0--schedulePlanningCalendar-4 has no sReplFunctionNames
[0-0] [wdi5] call of getControl() failed because of: Error: No DOM element found using the control selector {"id":"__row0-__xmlview0--schedulePlanningCalendar-5"}
[0-0] [wdi5] __row0-__xmlview0--schedulePlanningCalendar-5 has no sReplFunctionNames
[0-0] [wdi5] call of getControl() failed because of: Error: No DOM element found using the control selector {"id":"__row0-__xmlview0--schedulePlanningCalendar-6"}
[0-0] [wdi5] __row0-__xmlview0--schedulePlanningCalendar-6 has no sReplFunctionNames
[0-0] [wdi5] call of getControl() failed because of: Error: No DOM element found using the control selector {"id":"__row0-__xmlview0--schedulePlanningCalendar-7"}
[0-0] [wdi5] __row0-__xmlview0--schedulePlanningCalendar-7 has no sReplFunctionNames
[0-0] [wdi5] call of getControl() failed because of: Error: No DOM element found using the control selector {"id":"__row0-__xmlview0--schedulePlanningCalendar-0"}
[0-0] [wdi5] __row0-__xmlview0--schedulePlanningCalendar-0 has no sReplFunctionNames
[0-0] [wdi5] call of _getAggregation() failed because of: TypeError: Cannot read properties of undefined (reading 'getAggregation')
[0-0] []
[0-0] [wdi5] call of _getAggregation() failed because of: TypeError: Cannot read properties of undefined (reading 'getAggregation')
[0-0] []
[0-0] [wdi5] call of _getAggregation() failed because of: TypeError: Cannot read properties of undefined (reading 'getAggregation')
[0-0] []
[0-0] [wdi5] call of _getAggregation() failed because of: TypeError: Cannot read properties of undefined (reading 'getAggregation')
[0-0] []
[0-0] [wdi5] call of _getAggregation() failed because of: TypeError: Cannot read properties of undefined (reading 'getAggregation')
[0-0] []
[0-0] [wdi5] call of _getAggregation() failed because of: TypeError: Cannot read properties of undefined (reading 'getAggregation')
[0-0] []
[0-0] [wdi5] call of _getAggregation() failed because of: TypeError: Cannot read properties of undefined (reading 'getAggregation')
[0-0] []
[0-0] [wdi5] call of _getAggregation() failed because of: TypeError: Cannot read properties of undefined (reading 'getAggregation')
[0-0] []
And if I try to run the commented line instead (to get the Control Info) I get the following output for every element
{
[0-0] '$': [
[0-0] 'newSession',
[0-0] 'deleteSession',
[0-0] 'status',
[0-0] 'getTimeouts',
[0-0] 'setTimeouts',
[0-0] 'getUrl',
[0-0] 'navigateTo',
[0-0] 'back',
[0-0] 'forward',
[0-0] 'refresh',
[0-0] 'getTitle',
[0-0] 'getWindowHandle',
[0-0] 'closeWindow',
[0-0] 'switchToWindow',
[0-0] 'createWindow',
[0-0] 'getWindowHandles',
[0-0] 'printPage',
[0-0] 'switchToFrame',
[0-0] 'switchToParentFrame',
[0-0] 'getWindowRect',
[0-0] 'setWindowRect',
[0-0] 'maximizeWindow',
[0-0] 'minimizeWindow',
[0-0] 'fullscreenWindow',
[0-0] 'findElement',
[0-0] 'findElementFromShadowRoot',
[0-0] 'findElements',
[0-0] 'findElementsFromShadowRoot',
[0-0] 'findElementFromElement',
[0-0] 'findElementsFromElement',
[0-0] 'getElementShadowRoot',
[0-0] 'getActiveElement',
[0-0] 'isElementSelected',
[0-0] 'isElementDisplayed',
[0-0] 'getElementAttribute',
[0-0] 'getElementProperty',
[0-0] 'getElementCSSValue',
[0-0] 'getElementText',
[0-0] 'getElementTagName',
[0-0] 'getElementRect',
[0-0] 'isElementEnabled',
[0-0] 'elementClick',
[0-0] 'elementClear',
[0-0] 'elementSendKeys',
[0-0] 'getElementValue',
[0-0] 'getPageSource',
[0-0] 'executeScript',
[0-0] 'executeAsyncScript',
[0-0] 'getAllCookies',
[0-0] 'addCookie',
[0-0] 'deleteAllCookies',
[0-0] 'getNamedCookie',
[0-0] 'deleteCookie',
[0-0] 'performActions',
[0-0] 'releaseActions',
[0-0] 'dismissAlert',
[0-0] 'acceptAlert',
[0-0] 'getAlertText',
[0-0] 'sendAlertText',
[0-0] 'takeScreenshot',
[0-0] 'takeElementScreenshot',
[0-0] 'getElementComputedRole',
[0-0] 'getElementComputedLabel',
[0-0] 'setPermissions',
[0-0] 'generateTestReport',
[0-0] 'createMockSensor',
[0-0] 'getMockSensor',
[0-0] 'updateMockSensor',
[0-0] 'deleteMockSensor',
[0-0] 'setTimeZone',
[0-0] 'addVirtualAuthenticator',
[0-0] 'removeVirtualAuthenticator',
[0-0] 'addCredential',
[0-0] 'getCredentials',
[0-0] 'removeAllCredentials',
[0-0] 'removeCredential',
[0-0] 'setUserVerified',
[0-0] 'isAlertOpen',
[0-0] 'isAutoReporting',
[0-0] 'setAutoReporting',
[0-0] 'isLoading',
[0-0] 'takeHeapSnapshot',
[0-0] 'getNetworkConnection',
[0-0] 'setNetworkConnection',
[0-0] 'getNetworkConditions',
[0-0] 'setNetworkConditions',
[0-0] 'deleteNetworkConditions',
[0-0] 'sendCommand',
[0-0] 'sendCommandAndGetResult',
[0-0] 'file',
[0-0] 'launchChromeApp',
[0-0] 'elementHover',
[0-0] 'touchPinch',
[0-0] 'freeze',
[0-0] 'resume',
[0-0] 'getCastSinks',
[0-0] 'selectCastSink',
[0-0] 'startCastTabMirroring',
[0-0] 'getCastIssueMessage',
[0-0] 'stopCasting',
[0-0] ... 97 more items
[0-0] ],
[0-0] id: undefined,
[0-0] methods: undefined,
[0-0] className: undefined,
[0-0] key: '__row0-__xmlview0--schedulePlanningCalendar-6'
[0-0] }
The planning calendar seems to be located correctly, but the aggregations are not. Is there something that I am missing? Or am I doing something wrong? Or this is how it works: We can only get the keys of the aggregations and then we need to locate them separately with "asControl() and a selector?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (2 by maintainers)
Hi there,
Plsease see attached a sample project. Example_tests.zip