How to scroll to the element by using scrollIntoView in WebDriverIO.

Аватар автора
Реактивный Разработчик и Рубль
How to scroll to the element by using scrollIntoView in WebDriverIO. Code: describe(&the element into view&() = { it(&: Scroll the element into view&async () = { const elementToScroll = await $("//a[contains(@aria-label,¬ recognized')]") await browser.pause(5000) await elementToScroll.scrollIntoView(); await browser.pause(5000) }) }) Chapters: 0:00 - Introduction to the video. 0:34 - Inspecting the elements. 0:54 - Program for scroll to the element by using scrollIntoView in WebDriverIO. 1:36 - Executing the program. Next Steps : --------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------- Must Watch Playlists --------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------- #scrollintoview

0/0


0/0

0/0

0/0