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);
    });
相关推荐
雪可问春风18 小时前
docker环境部署
运维·docker·容器
lwx91485218 小时前
Linux-Shell算术运算
linux·运维·服务器
翻斗包菜19 小时前
PostgreSQL 日常维护完全指南:从基础操作到高级运维
运维·数据库·postgresql
somi719 小时前
ARM-驱动-02-Linux 内核开发环境搭建与编译
linux·运维·arm开发
海的透彻19 小时前
nginx启动进程对文件的权限掌控
运维·chrome·nginx
路溪非溪19 小时前
Linux驱动开发中的常用接口总结(一)
linux·运维·驱动开发
航Hang*20 小时前
第3章:Linux系统安全管理——第2节:部署代理服务
linux·运维·服务器·开发语言·笔记·系统安全
北方的流星20 小时前
华三网络设备的路由重定向配置
运维·网络·华三
河南博为智能科技有限公司20 小时前
蓄电池在线监测系统-守护数据中心安全防线
运维·边缘计算
SkyWalking中文站20 小时前
使用 TraceQL 查询 SkyWalking 和 Zipkin 链路追踪数据并在 Grafana 中可视化
运维·grafana·监控