diff --git a/src/usecases/timeline.js b/src/usecases/timeline.js index 191117891d..3298464c8d 100644 --- a/src/usecases/timeline.js +++ b/src/usecases/timeline.js @@ -20,7 +20,7 @@ module.exports.scrollToTimelineTop = async function(session) { session.log.step(`scrolls to the top of the timeline`); await session.page.evaluate(() => { return Promise.resolve().then(async () => { - const timelineScrollView = document.querySelector(".mx_RoomView .gm-scroll-view"); + const timelineScrollView = document.querySelector(".mx_RoomView_timeline .mx_ScrollPanel"); let timedOut = false; let timeoutHandle = null; // set scrollTop to 0 in a loop and check every 50ms