selenium中webdriver 三种等待方式
发布日期:2019-04-03
一、强制等待强制等待是利用python语言自带的time库中的sleep()方法: from time import sleep sleep...
selenium关闭chrome的gpu加速
发布日期:2019-03-05
1、问题做使用selenium控制chrome时,默认会开启gpu加速功能,但GPU加速可能导致在虚拟机Chrome的CPU占用率非常高。那么如何关闭gp...
Selenium之Action Chains类
发布日期:2019-02-24
Action Chains类常用于模拟鼠标的行为,比如单击,双击,拖拽等行为,使用下面的方法导入Action Chains类from selenium.w...
selenium设置不加载图片
发布日期:2019-02-21
selenium设置不加载图片,以加快加载速度# -*- coding:utf-8 -*- from selenium import webdriver ...
selenium如何模拟鼠标下拉
发布日期:2019-02-21
有时需要模拟鼠标下拉操作,可以如下:# -*- coding:utf-8 -*- from selenium import webdriver from ...