AAE-22965 fix datepicker focused element selector (#9814)

This commit is contained in:
Wojciech Duda 2024-06-14 15:54:10 +02:00 committed by VitoAlbano
parent 781dfb4824
commit 47809fb10b

View File

@ -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<string> {
return BrowserActions.getAttribute($(`button[class*="${materialLocators.Calendar.body.active.root}"]`), 'aria-label');