stabilize combo box selection (#116577)

=
This commit is contained in:
Joe Reuter 2021-11-02 17:06:09 +01:00 committed by GitHub
parent 237d68d6e9
commit a720a021a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,9 @@ export class ComboBoxService extends FtrService {
*/
private async clickOption(isMouseClick: boolean, element: WebElementWrapper): Promise<void> {
// element.click causes scrollIntoView which causes combobox to close, using _webElement.click instead
return isMouseClick ? await element.clickMouseButton() : await element._webElement.click();
await this.retry.try(async () => {
return isMouseClick ? await element.clickMouseButton() : await element._webElement.click();
});
}
/**