dy自动化遇到的滑动问题

DrissionPage滚动页面问题

一般是这样:

driver.scroll.to_bottom()

但是dy得这样:

e = driver.ele('x://div[@class="parent-route-container route-scroll-container IhmVuo1S"]')

e.scroll.to_bottom()

查找滑动容器方法之一:

控制台输入:

复制代码
        // 查找所有可滚动的元素
    let scrollableElements = Array.from(document.querySelectorAll('*')).filter(el => {
        return el.scrollHeight > el.clientHeight && 
            (el.style.overflow === 'auto' || el.style.overflow === 'scroll' ||
                getComputedStyle(el).overflow === 'auto' || getComputedStyle(el).overflow === 'scroll');
    });

    console.log('可滚动元素:', scrollableElements);
    scrollableElements.forEach((el, i) => {
        console.log(`元素 ${i}:`, el);
        console.log('类名:', el.className);
        console.log('标签名:', el.tagName);
    });
相关推荐
碳基沙盒1 天前
OpenClaw 多 Agent 配置实战指南
运维
蝎子莱莱爱打怪4 天前
Centos7中一键安装K8s集群以及Rancher安装记录
运维·后端·kubernetes
DianSan_ERP5 天前
电商API接口全链路监控:构建坚不可摧的线上运维防线
大数据·运维·网络·人工智能·git·servlet
呉師傅5 天前
火狐浏览器报错配置文件缺失如何解决#操作技巧#
运维·网络·windows·电脑
不是二师兄的八戒5 天前
Linux服务器挂载OSS存储的完整实践指南
linux·运维·服务器
zhangfeng11335 天前
趋动云 如何ssh登录 服务区 项目server
运维·人工智能·ssh
ZeroNews内网穿透5 天前
谷歌封杀OpenClaw背后:本地部署或是出路
运维·服务器·数据库·安全
失重外太空啦5 天前
nginx
运维·nginx
Gofarlic_oms15 天前
避免Kisssoft高级分析模块过度采购的科学评估方法
大数据·linux·运维·人工智能·matlab
田井中律.5 天前
服务器部署问题汇总(ubuntu24.04.3)
运维·服务器