From 0d555f5704f28bc47c179fded6480c942537ad86 Mon Sep 17 00:00:00 2001 From: Wojciech Duda <69160975+wojd0@users.noreply.github.com> Date: Fri, 14 Jun 2024 15:54:10 +0200 Subject: [PATCH] AAE-22965 fix datepicker focused element selector (#9814) --- .../protractor/core/pages/material/date-picker-calendar.page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/testing/src/lib/protractor/core/pages/material/date-picker-calendar.page.ts b/lib/testing/src/lib/protractor/core/pages/material/date-picker-calendar.page.ts index bceefabf803..9b241c24d0b 100644 --- a/lib/testing/src/lib/protractor/core/pages/material/date-picker-calendar.page.ts +++ b/lib/testing/src/lib/protractor/core/pages/material/date-picker-calendar.page.ts @@ -29,7 +29,7 @@ export class DatePickerCalendarPage { todayDate = TestElement.byCss(`${materialLocators.Calendar.body.today.class}`); periodButton = $(`button[class*=${materialLocators.Calendar.button('period')}]`); - focusedElement = `div${materialLocators.Calendar.body.cell.content.class}${materialLocators.Calendar.focus}`; + focusedElement = `span${materialLocators.Calendar.body.cell.content.class}${materialLocators.Calendar.focus}`; async getSelectedDate(): Promise { return BrowserActions.getAttribute($(`button[class*="${materialLocators.Calendar.body.active.root}"]`), 'aria-label');