From a394885a3a1987019ce9f0381792342d5651006c Mon Sep 17 00:00:00 2001 From: Sander Philipse Date: Fri, 24 Jan 2025 13:41:40 +0100 Subject: [PATCH] try other scroll into view method --- x-pack/test/functional/page_objects/search_start.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/test/functional/page_objects/search_start.ts b/x-pack/test/functional/page_objects/search_start.ts index 1074a6e20d449..31a588a8dc1c5 100644 --- a/x-pack/test/functional/page_objects/search_start.ts +++ b/x-pack/test/functional/page_objects/search_start.ts @@ -54,7 +54,8 @@ export function SearchStartProvider({ getService }: FtrProviderContext) { }, async clickSkipButton() { await testSubjects.existOrFail('createIndexSkipBtn'); - await testSubjects.scrollIntoView('createIndexSkipBtn'); + const element = await testSubjects.find('createIndexSkipBtn'); + await element.scrollIntoView(); await testSubjects.click('createIndexSkipBtn'); }, async expectCreateIndexButtonToExist() {