fix scrollpanel selector
This commit is contained in:
parent
2b2a4867bd
commit
5939d62499
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module.exports.scrollToTimelineTop = async function(session) {
|
||||||
session.log.step(`scrolls to the top of the timeline`);
|
session.log.step(`scrolls to the top of the timeline`);
|
||||||
await session.page.evaluate(() => {
|
await session.page.evaluate(() => {
|
||||||
return Promise.resolve().then(async () => {
|
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 timedOut = false;
|
||||||
let timeoutHandle = null;
|
let timeoutHandle = null;
|
||||||
// set scrollTop to 0 in a loop and check every 50ms
|
// set scrollTop to 0 in a loop and check every 50ms
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue