当前位置:网站首页>pyppeteer 下拉 selenium下拉
pyppeteer 下拉 selenium下拉
2022-07-28 05:25:00 【幻影七幻】
for i in range(5): # 执行js代码向下滚动滚动条
方法1:下拉标准像素
# dimensions = await self.browser.evaluate(f'varq=document.documentElement.scrollTop={i * 1500}')
方法2:下拉到指定位置
await self.browser.hover(".a-pagination ") #css
print('sleeps')
await sleep(1)selenium下拉
js = "var q=document.documentElement.scrollTop=100000"
driver.execute_script(js)
time.sleep(1)
page = driver.find_element_by_xpath("//*[contains(text(), '热门城市')]")
driver.execute_script("arguments[0].scrollIntoView(false);", page) # 下拉边栏推荐
- What happens when MySQL tables change from compressed tables to ordinary tables
- Hugging face 的问题记录 I
- ubuntu mysql 设置远程访问权限
- PyTorch 学习笔记 4 —— 自动计算梯度下降 AUTOGRAD
- Filter
- Word自动目录字体修改和行间距的问题
- Vs code basic configuration and beautification
- IMS-FACNN(Improved Multi-Scale Convolution Neural Network integrated with a Feature Attention Mecha
- EMC experiment practical case ESD electrostatic experiment
- 我的注解笔记
猜你喜欢

Problems of font modification and line spacing in word automatic directory

Matlab simulation of radar imaging 3 - multi-target detection

JSON笔记

毕业论文 | 文献综述应该怎么写

Pytorch learning note 4 - automatic calculation of gradient descent autograd

Beginners choose sensors

Weight decay

mixup_ ratio
![[server usage record] log in to the remote server through the springboard machine and transfer files](/img/11/1ca6c2f34d43dfb6d766ec0dc3371d.png)
[server usage record] log in to the remote server through the springboard machine and transfer files

CLIP Learning Transferable Visual Models From Natural Language Supervision
随机推荐
小程序:生命周期
Trouble encountered in cable testing -- a case study of a manufacturer?
听说你也在实习|当我采访了几个大三实习生之后。
自定义组件--父子组件之间的通信
MySQL delete tables without deleting databases
Transformer self attention mechanism and complete code implementation
USB network native driver for esxi updated to support esxi7.0 Update 2
Perl introductory learning (XI) file operation
VI and VIM commands
Esxi on ARM v1.2 (updated in November 2020)
量化交易机器人系统开发
USB network native driver for esxi updated to support esxi7.0.1
Fluke dtx-sfm2 single mode module of a company in Hangzhou - repair case
T-sne dimension reduction visualization
OpenGL的开发环境配置【VS2017】+常见问题
相对路径和绝对路径
OpenGL快速配置方法
Pytorch learning notes 1 - quick start
MFC 使用控制台打印程序信息
PyTorch 学习笔记