Fixed selected element on dropdown selector

This commit is contained in:
Vito Albano
2023-11-29 14:18:15 +00:00
parent 6dac51b3af
commit c401611792

View File

@@ -66,7 +66,7 @@ export class DropdownPage {
}
async checkOptionIsSelected(option: string): Promise<void> {
const selectedOption = this.dropDownElement.element(by.cssContainingText('.mdc-list-item__primary-text', option));
const selectedOption = this.dropDownElement.element(by.cssContainingText('.mat-mdc-select-value-text span', option));
await BrowserVisibility.waitUntilElementIsVisible(selectedOption);
}