当前位置:网站首页>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) # 下拉边栏推荐
猜你喜欢
随机推荐
Matlab simulation of radar imaging 2 - pulse compression and windowing
Fluke dtx-sfm2 single mode module of a company in Hangzhou - repair case
qt自定义滑动按钮(美观且使用方便)
机器学习笔记 5 —— Logistic Regression
【学习笔记】工具
Weight decay
Esxi on ARM v1.2 (updated in November 2020)
雷达成像 Matlab 仿真 4 —— 距离分辨率分析
[yolov5] environment construction: win11 + mx450
In vscade, the source file "adafruit_gfx.h" cannot be opened“
Listener
clickhouse聚合之内存不足怎么办?那就提升聚合性能
Measure computer battery capacity
My notes
当mysql表从压缩表变成普通表会发生什么
Pyppeteer 被识别 绕过检测
Efficient Net_ V2
Perl Introduction (10) formatted output
Detailed explanation of word mail merge function: after merging, multiple word documents are generated and blank pages are deleted
【YOLOv5】环境搭建:Win11 + mx450









