stabilize combo box selection (#116577) (#117164)

=

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
This commit is contained in:
Kibana Machine 2021-11-02 14:05:08 -04:00 committed by GitHub
parent 75fb14d849
commit 6d48676845
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();
});
}
/**