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 分钟前
Amphenol LTW 防水线缆 IP67/IP68 结构解析
运维·网络·人工智能·汽车·硬件工程·材料工程
放寒假脚后跟v11 分钟前
Pod 的 YAML 文件中 exitCode 字段的具体含义、不同取值代表的场景
运维·云原生·容器·kubernetes·k8s
东方佑13 分钟前
使用Docker Compose一键部署OnlyOffice:完整指南与配置解析
运维·docker·容器
赵文宇(温玉)38 分钟前
Docker的价值、特点、创新与关键技术
运维·docker·容器
芝麻馅汤圆儿39 分钟前
cpu 大小核
linux·运维·centos
m0_726965981 小时前
玩转(坏)服务器【一】
运维·服务器
记得开心一点嘛1 小时前
Elasticsearch
运维·jenkins
Dxy12393102162 小时前
Python如何使用DrissionPage做自动化:简单入门指南
开发语言·python·自动化
Ares-Wang2 小时前
网络》》防火墙
运维·服务器·网络
qq_526099132 小时前
机器视觉网卡的全面选型指南
数码相机·计算机视觉·自动化