[AAE-21089] Fix e2e Search - fix checkbox selector

This commit is contained in:
Amedeo Lepore
2024-03-14 17:08:13 +01:00
committed by VitoAlbano
parent 593c278d00
commit c9fc4675c0

View File

@@ -31,7 +31,7 @@ export class CheckboxWidgetPage {
} }
async clickCheckboxInput(fieldId: string): Promise<void> { async clickCheckboxInput(fieldId: string): Promise<void> {
const checkboxInput = $$(`${this.checkboxLocator}[id="${fieldId}"] span`).first(); const checkboxInput = $$(`${this.checkboxLocator}[id="${fieldId}"] input`).first();
await BrowserActions.click(checkboxInput); await BrowserActions.click(checkboxInput);
} }