E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
webdriver
selenium3环境搭建以及各浏览器驱动的使用方法
seleniu请访问selenium官网https://www.seleniumhq.org/以Selenium3.0.2版本为例介绍在Python中如何安装及使用,具体操作步骤如下:1.在Python中安装
WebDriver
叶若然。
·
2020-07-10 19:30
selenium
Python 使用selenium爬取58网站,租房详情信息
58租房简单的实现fromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionsimportjsonclassZufangSpider
愤怒的马农
·
2020-07-10 19:58
selenium
爬虫
python
短信轰炸
importtimefromseleniumimport
webdriver
importthreadingclassBomber(object):def__init__(self,phone):self.phone
浆糊,
·
2020-07-10 19:43
Selenium
短信轰炸
iOS 常用第三方库统计
第三方库描述awesome-iosiOS第三库合集BigShow1949iOSDemo合集音频播放系列音频相关博客TimLiu-iOS-----Tim9Liu9总结的iOS、mac开源项目及库
WebDriver
AgentWDA
哦呵呵y
·
2020-07-10 19:31
selenium爬取裁判文书网
一、设定搜索条件fromseleniumimport
webdriver
importtimeoptions=
webdriver
.ChromeOptions()"""使用IP代理跳过反爬策略频繁爬取会触发验证码机制
码农Robin
·
2020-07-10 19:47
python
关于python+selenium自动化测试中的数据驱动测试
#coding:utf-8fromseleniumimport
webdriver
frompublicimportLoginimporttimeclassLogin_data():def__init__(
之音之音
·
2020-07-10 19:02
python练习
python+selenium Driver常用方法(浏览器相关操作)
四个导航栏方法:get、back、forwad、refresh:我们能看到的浏览器导航栏的:【地址栏输入地址、后退、前进、刷新】fromseleniumimport
webdriver
importtimedriver
Y-Handsome
·
2020-07-10 19:18
Python爬虫-爬取豆瓣信息(selenium+xpath)
模拟豆瓣登录:1'''2利用selenium模拟登录豆瓣3需要输入验证码4思路:51.保存页面成快照62.等待用户手动输入验证码73.继续自动执行提交等动作89'''1011fromseleniumimport
webdriver
12fromselenium.web
weixin_33701617
·
2020-07-10 19:35
Selenium+python --定位下拉列表框并选取内容
followyoyo定位下拉列表并选取内容#coding:utf-8fromseleniumimport
webdriver
fromselenium.
webdriver
.common.action_chainsimportActionChainsfromselenium.
webdriver
.support.selectimportSelectdriver
weixin_30791095
·
2020-07-10 19:53
python+selenuim自动化测试(六)弹窗的处理
fromseleniumimport
webdriver
fromtimeimportsleepdriver=
webdriver
.Firefox()driver.get("http://www.baidu.com
weixin_30780221
·
2020-07-10 19:52
selenium去掉下载弹窗
fromseleniumimport
webdriver
importtimeimporturllib2classDownload():def__init__(self):self.fp=
webdriver
.FirefoxProfile
weixin_30667649
·
2020-07-10 19:15
Selenium+Python 浏览器驱动对应表
1、谷歌浏览器地址栏输入:chrome://version/查看当前谷歌浏览器版本
webdriver
和chrome版本对应如下:驱动下载地址:http://npm.taobao.org/mirrors/
花小田
·
2020-07-10 18:04
Selenium
Python Selenium 键盘和鼠标操作
首先要在文件头引入fromselenium.
webdriver
.common.action_chainsimportActionChains#定义一个函数de
nigon
·
2020-07-10 18:38
Coding
selenium2.0关于python的常用函数
原地址:http://blog.sina.com.cn/s/blog_b5fe6b270101c8v0.html新建实例driver=
webdriver
.Chrome()1.通过标签属性Id查找元素方法
nigon
·
2020-07-10 18:07
Coding
彻底解决selenium启动firefox时总弹框的问题
可参见:http://toolsqa.com/selenium-
webdriver
/custom-firefox-profile/当然,也有中文版,可参见:https://my.oschina.net/
LitteBB
·
2020-07-10 18:01
java
selenium
Python+Selenium练习篇之30-获取当前页面全部图片信息
相关脚本代码如下:#coding=utf-8importtimefromseleniumimport
webdriver
driver=
webdriver
.Chrome()driver.maximize_window
Anthony_tester
·
2020-07-10 18:28
讨论scrapy-splash渲染不成功问题?
selenium通过
webdriver
模拟对页面的访问,但是由于某些网站的
SxTopc
·
2020-07-10 18:10
Python网络爬虫
python3 爬取网易云歌曲详情
在这里笔者用的是Chrome72,使用里边的
webdriver
模块,可以
ZwY*
·
2020-07-10 18:07
python爬虫
python爬虫代理池,再也不怕封IP了
本代码是从用
webdriver
模拟chrome浏览器http://www.xicidaili.com/上爬取的代理的(因为这个网站有发爬虫,就直接用
webdriver
快速搞定,这么一个小网站,就懒得去研究它的反爬了
我就爱钱
·
2020-07-10 18:34
python
使用selenium爬取猫眼,使用mitmproxy过美团检测
由于猫眼使用的是对
webdriver
标示进行检测,所以我们可以拦截修改这个标示。拦截配置代码如下,
我要出家当道士
·
2020-07-10 17:35
朝花夕拾
某数的高度js混淆加密分析
如果不是刚需,建议大家可以用
webdriver
之类自动化工具,如果想硬撸的可以看下我的思路,也多多学习下人家的反扒技术,是真的强。博主看的网站有个FSSBBIl1Ug
zwl_haley
·
2020-07-10 17:38
selenium弹窗之windows下载文件弹窗点击方法
pyautogui模块一、弹窗类型一般说到selenium中的弹窗包括以下三种类型:类型一:窗口柄这种窗口常说的就是窗口句柄,其实并不能算弹窗,应该属于窗口切换类型二:web弹窗使用如下命令导致的:browser=
webdriver
.Firefox
python__reported
·
2020-07-10 17:32
自动化
spider
鼠标键盘自动化
python
selenium
windows
selenium代码模板
拷贝模板不需要的代码可以注释掉:导入模块,不用的可以注释掉:fromseleniumimport
webdriver
fromselenium.
webdriver
.support.uiimport
WebDriver
Waitfromselenium.
webdriver
.supportimportexpected_conditionsasECfromselenium.commonimportexcepti
lyzxy
·
2020-07-10 17:35
selenium
appium入门(8)—— appium常用API
appium的客户端(
WebDriver
)提供的接口按作用大致可以分为控件的查找、手势才做和系统操作。
lei___
·
2020-07-10 17:51
appium
appium入门(6)—— Desired Capabilities初步认识
ppium的DesiredCapabilities是扩展了
webdriver
的DesiredCapabilities。
lei___
·
2020-07-10 17:51
appium
Python代码大全之selenium 从网页提出数据并存储到sqlite数据库(完整代码)
从页面获取数据fromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeysdriver1=
webdriver
.Chrome
知识大胖
·
2020-07-10 17:24
Python源码大全
Python爬虫----爬取腾讯动漫全站漫画
目标网站:https://ac.qq.com/实现功能:下载全部漫画到本地文件夹中实现代码:importrequestsfromlxmlimportetreefromseleniumimport
webdriver
fromtimeimportsleepfrombs4importBeautifulSoupfromselenium.
webdriver
.chrome.optionsimportOption
暂未秃头
·
2020-07-10 17:40
python爬虫 使用selenium抓取 猫眼电影网站排名页 电影信息
fromseleniumimport
webdriver
importtime#设置无头模式options=
webdriver
.ChromeOptions()optins.add_argument('--headless
俞泰鑫
·
2020-07-10 16:42
spider
#python
Python3+Selenium2完整的自动化测试实现之旅(七):完整的轻量级自动化框架实现...
一、前言前面系列Python3+Selenium2自动化系列博文,陆陆续续总结了自动化环境最基础环境的搭建、IE和Chrome浏览器驱动配置、selenium下的
webdriver
模块提供的元素定位和操作鼠标
dieshuang3318
·
2020-07-10 16:02
自动化测试:selenium
http://blog.sina.com.cn/s/articlelist_1728839330_2_1.html
WebDriver
之modifierkey:Key…(0/25)2013-03-2715
cchaha
·
2020-07-10 16:35
selenium
Selenium+
Webdriver
常用的元素定位方式
假设页面源代码如下:通过id定位元素:find_element_by_id(“id_vaule”):browser=
webdriver
.Firefox()browser.find_element_by_id
戈壁楼兰
·
2020-07-10 16:49
Python学习
使用selenium爬取网易云音乐所有歌单及链接
理论基础:https://blog.csdn.net/apollo_miracle/article/details/84915796importtimefromseleniumimport
webdriver
classWYMusic
梦因you而美
·
2020-07-10 16:32
爬虫
Selenium2(
Webdriver
)+Python处理浏览器弹窗
我们在浏览网页时经常会碰到各种花样的弹窗,在做UI自动化测试的时候势必要处理这些弹窗,这里就介绍一下目前前端界两种弹窗的处理方法。1.alert弹窗这种弹窗是最简单的一种,Selenium里有自带的方法来处理它,用switch_to.alert先定位到弹窗,然后使用一系列方法来操作:accept-点击【确认】按钮dismiss-点击【取消】按钮(如有按钮)send_keys-输入内容(如有输入框)
Real_Tino
·
2020-07-10 16:18
自动化测试
selenium
自动化测试
Python--weather.No.2--csv的实操和正则表达式
importreimportcsvimporttimeimportrequestsfrombs4importBeautifulSoupfromseleniumimport
webdriver
fromseleni
QXK_Jack
·
2020-07-10 16:42
Python+Selenium基础篇-打开和关闭火狐浏览器
本节介绍如何初始化一个
webdriver
实例对象driver,然后打开和关闭firefox浏览器。要用selenium打开fiefox浏览器。
LuckyMeizai
·
2020-07-10 16:18
scrapy 爬取京东商品信息与评论 【最新】
scrapy1.5python3.61spider#-*-coding:utf-8-*-importreimporturllibimportscrapyfromseleniumimport
webdriver
fromjd.itemsimportGoodsItem
ylw209620
·
2020-07-10 15:01
爬虫
Python爬虫之selenium爬取英雄联盟官网英雄皮肤图片下载到本地和保存到数据库
从英雄联盟皮肤网站的网页源代码中获取不到英雄的皮肤地址通过selenium可以轻松获取想要的内容源码展示fromseleniumimport
webdriver
fromtimeimportsleepfrompyqueryimportPyQueryaspqimportos
xyl180808
·
2020-07-10 15:59
python爬虫
python爬取国内疫情数据并生成地图
效果展示直接上代码获取国内疫情数据fromseleniumimport
webdriver
importosfromtimeimportsleepimportxlwtbookwork=xlwt.Workbook
木大木打木大
·
2020-07-10 15:41
Selenium+Firefox的自动下载(去掉下载弹窗)
去掉下载弹窗的优点二、去掉下载弹窗的一般命令三、重点一、去掉下载弹窗的优点检索键盘鼠标自动化控制模块的导入可以无头化运行,不影响同时进行的其他的任务二、去掉下载弹窗的一般命令fromselenium.
webdriver
importFirefoxProfile
python__reported
·
2020-07-10 15:19
自动化
裁判文书
selenium
Cypress与TestCafe WebUI端到端测试框架Demo
Postman测试API如此简单postman接口测试--URLParameter数据驱动参数化近期接触了Cypress和TestCafe,两个测试框架都基于Node.js,都不再使用Selenium+
WebDriver
软测小生
·
2020-07-10 14:51
#
软件测试
最全30种的selenium定位元素方法
WebDriver
8种基本元素定位方式find_element_by_id()采用id属性进行定位。例如在百度页面中输入关键字Selenium进行搜索。
Ge格
·
2020-07-10 14:02
测试
An unknown server-side error occurre while processing the command的解决办法
1.8sdk:5.1.1错误:.EETime:0.984Therewere2errors:1)PreQuestion(com.test.quiz.QuizTest)org.openqa.selenium.
WebDriver
Exception
youxitou
·
2020-07-10 13:15
appium
python+selenium切换窗口(获取句柄信息)
current_window_handle:获得当前窗口句柄;window_handles:返回所有窗口的句柄到当前会话;switch_to.window(suoyou[0])fromseleniumimport
webdriver
fromtimeimportsleepdriver
wyt5206
·
2020-07-10 12:01
IOS自动化 在appium脚本中启动
WebDriver
Agent
Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver目录下,第一次我是启动xcode,来启动
WebDriver
Agent
那一年-漫天雪
·
2020-07-10 12:38
自动化测试
appium
句柄切换及frame/iframe跳转
importtimefromseleniumimport
webdriver
#实例化driver=
webdriver
.Chrome()#打开百度driver.get('https://www.baidu.com
weixin_48031104
·
2020-07-10 11:59
selenium
Web自动化测试:POM设计模式的实现
一、driver层的封装这一层主要是对于
webdriver
方法的封装,这里来举一个栗子,最常用的
szchuanshi
·
2020-07-10 11:51
自动化测试
软件测试培训
软件测试
python+selenium——爬取网站
#coding:utf-8importreimportxlrdimportxlwtimporttimeimportpandasaspdsfromseleniumimport
webdriver
fromselenium.common.exceptionsimportTimeoutExceptionfromselenium.
webdriver
.common.byimportByfromselenium
乔眉
·
2020-07-10 10:56
appium1.15.1 + xcode11.4 + IOS13.4.1从调试到放弃改用appium1.17.1错误解决
配置
webdriver
agent报的错误解决错误1:BuildingforiOSSimulator,butthelinkedframework'CocoaAsyncSocket.framework'wasbuiltfortvOS
victorm315
·
2020-07-10 10:05
【“探探”为例】手把手教你用最少的代码实现各种“机器人”
Github:探探机器人,自动根据不同妹纸/汉子颜值、年龄等类型,喜欢、忽略,欢迎各位star先看一下实现的结果吧今天要讲的主题是:使用脚本+
WebDriver
Agent实现你自己想要自动操控的任意手机
weixin_34153893
·
2020-07-10 08:17
python+chrome+docker运行环境配置
我采用的是selenium+bs4的模块,浏览器驱动采用的是chrome的
webdriver
,这个在selenium中有。
wangyhwyh753
·
2020-07-10 05:20
python
docker
python3
chrome
上一页
124
125
126
127
128
129
130
131
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他