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
WebDriver
IO教程:处理Selenium中的警报和覆盖
WebDriver
IO教程:处理Selenium中的警报和覆盖在此有关Selenium中警报处理的
WebDriver
IO教程中,我将向您展示如何在
WebDriver
IO中处理警报和弹出窗口以及叠加模式。
软件测试test
·
2020-08-10 09:25
web自动化
phantomjs和selenium设置proxy、headers
:utf-8-*-__author__='Yl-Zh'importrandom,headers,xmlParsefrombs4importBeautifulSoupfromseleniumimport
webdriver
fromselenium.
webdriver
.common.desired_capabilitiesimportDesiredC
Tcorpion
·
2020-08-10 09:10
爬虫
1129UI自动化测试经验分享-显式等待(三)脚本设置元素等待【干货】
同事A的脚本(已做修改):deffind_element123(self,key,value):fromselenium.
webdriver
.support.waitimport
WebDriver
Waitifkey
zyooooxie
·
2020-08-10 08:03
Web自动化测试
App自动化测试
appium支持的客户端语言
狭义点理解,可以把client理解成是代码,这些代码可以是java/ruby/python/js的,只要它实现了
webdriver
标准协议就可以。
山海皆可平z
·
2020-08-10 08:14
杂谈
升级
MAC
python3 selenium 自动化 面向对象 函数的二次封装,以百度搜索为例子
#面向对象fromseleniumimport
webdriver
fromtimeimportsleep#Test这个类,classTest():def__init__(self):self.dr=
webdriver
.Chrome
shawn xie123
·
2020-08-10 08:33
selenium
UI自动化的坑
webdriver
的API无法处理上传文件时系统
weixin_44370919
·
2020-08-10 08:56
UI自动化
selenium:周杰伦歌词
爬虫练习1:周杰伦歌评爬取QQ音乐前30条热评*,顺便看看怎么发CSDN博客*importtimeimportrefromseleniumimport
webdriver
driver=
webdriver
.Chrome
Zhaochen_Li
·
2020-08-10 08:26
selenium爬取B站的弹幕制作词云
oid=26495963oid是视频的id这个api用谷歌的开发者工具是看不到内容的,建议都用火狐来找apifromseleniumimport
webdriver
fromlxmlimportetreeimportrequests
�
·
2020-08-10 08:52
python
python 自动化多线程的应用
1.本机上同时执行多个浏览器importthreading,sysfromtimeimportsleep,ctimefromseleniumimport
webdriver
path_list=sys.path
weixin_30709635
·
2020-08-10 07:41
Python爬虫 爬取豌豆荚休闲小游戏
fromseleniumimport
webdriver
importtimedriver=
webdriver
.Chrome()try:driver.implicitly_wait(20)driver.get
weixin_30345055
·
2020-08-10 07:55
游戏
爬虫
python
【Selenium】2019 chromedriver的官网版本对应关系
谷歌浏览器与chromedriver的版本对应关系,版本不对应会出现selenium的方法执行报错,提示方法不存在ChromeDriver-
WebDriver
forChrome官网2019年版本对照表ChromeDriver79.0.3945.36
jwensh
·
2020-08-10 07:58
Selenium
python+selenium2自动化测试学习笔记-总结篇
本系列文章从五月开始到现在十月,差不多经历了半年时间,回顾一下,本系列文章从零开始包含了python基础,
webdriver
api学习,python中级篇,unittest单元测试框架,pom设计模式,
依山临水
·
2020-08-10 07:24
selenium 使用chrome时与chromedriver版本不匹配的问题
这几天想试一下selenium但安装配置好之后,总是会报一个奇怪的错误,具体错误信息如下:selenium.common.exceptions.
WebDriver
Exception:Message:unknownerror
Slwhy
·
2020-08-10 07:36
爬虫
Selenium Web自动化测试(一)基础课程
课程内容:Python3的基本语法和函数面向对象编程学会使用PythonIde(社区免费版)和快速整理代码PEP8编码Ctrl+Alt+LProject文件模块读写文件路径拼接
WebDriver
API断言
Reese7806
·
2020-08-10 07:30
python
测试开发
霍克沃兹
Selenium2自动化测试模型
Selenium2自动化测试模型一.自动化测试库(library):是由代码集组成的,以供调用;面向对象的代码组织形成的库,称为类库;面向过程的代码组织形成的库称为函数库;
webdriver
就是一个类库
silicon2015
·
2020-08-10 07:55
软件测试
python
超级卵杰的自动脚本(2)selenium配置及发弹幕
fromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimpo
sars945
·
2020-08-10 07:43
Python3自动识别验证码(简单数字识别)转载http://www.cnblogs.com/landhu/p/4968577.html
pyocr、pytesseractpipinstallPillowpipinstallpyocrpipinstallpytesseract#coding=utf-8fromseleniumimport
webdriver
importosimportMarketingVPLoginimportunittestfromtimeimportsleepfromPILimportImag
考拉Kris
·
2020-08-10 07:35
Python3
selenium与chrome浏览器及驱动的版本匹配
用selenium+java+
webdriver
完成webUI功能自动化,经常会碰到浏览器版本与驱动的版本不匹配而引起报错。
成长tbl
·
2020-08-10 07:02
软件测试
selenium
java
chrome
刷视频的自动点击
fromseleniumimport
webdriver
importtimefromseleniumimport
webdriver
#驱动浏览器fromselenium.
webdriver
.support.waitimport
WebDriver
Waitbrowser
猥琐发育
·
2020-08-10 07:55
python
爬虫
xpath提取多个属性值&iframe切入
andcontains(@class,"btn-account")]')2.在嵌入了frame页面的网页中直接查找位于frame页面内部的内容会出现nosuchelement错误,解决方法如下:driver=
webdriver
.chrome
我也很棒棒
·
2020-08-10 07:21
爬爬PA
开发
selenium自动化测试--基于python语言 学习笔记1
1、
webdriver
自带的2个调用javascript的方法
webdriver
.execute_script(script,*args)#同步执行js代码
webdriver
.execute_async_script
qq_31142995
·
2020-08-10 07:48
selenium
selenium+Java实现自动登录
WebDriver
Test.javapackagetest;//importjava.util.NoSuchElementException;//importjava.util.concurrent.TimeUnit
qq_23069665
·
2020-08-10 06:04
爬取斗鱼平台
fin_element_by_xpath()的区别,以及对元素的定位,内容的提取3.获取请求下一页方法,注:time.sleep()代码:#encoding=utf-8fromseleniumimport
webdriver
importtimeclassDouYu
博弈星宇
·
2020-08-10 06:16
爬虫
selenium面向对象之findBy()的使用
从开始学习用
webDriver
和java进行编程,面向对象编程就成为了一种必然。方便结构化,更利于代码的管理。这里列举了登陆、登出、新闻的新增、删除操作。
mine333
·
2020-08-10 06:56
selenium自动化学习之路
Appium框架+JavaScript脚本的自动化测试demo
关闭APP下载测试apk(下载链接)设置Appium客户端(本例使用Wedbriver.io客户端)a.创建项目目录,比如exampleb.初始化npminit-yc.安装
webdriver
ionpminstall
webdriver
i
Empty-Filled
·
2020-08-10 06:44
appium
python
测试
appium
selenium+headless chrome 自动化测试登陆页面并截图
selenium自动化测试工具headless-chrome无头模式截图保存在桌面#导包fromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeysimporttime
lemonlemons
·
2020-08-10 06:46
Python 使用selenium 面向对象方式 无界面或有界面 自动化操作浏览器
这里只是一个示例,实际情况下需要根据要操作的路由而改变代码fromseleniumimport
webdriver
importtimeclassMyAutoDriver(object):def__init
haeasringnar
·
2020-08-10 06:05
Python
scrapy教程+selenium +数据的各种永久化存储
all_handles=browser.window_handles#切换到新的窗口browser.switch_to_window(all_handles[1])3、设置无界面模式1、options=
webdriver
.ChromeOptions
我爱旺仔复原乳
·
2020-08-10 06:11
python
Python
webdriver
调用Chrome报错
报错信息如下:selenium.common.exceptions.
WebDriver
Exception:Message:'chromedriver'executableneedstobeinPATH.Pleaseseehttps
dkvzkrdok146612647
·
2020-08-10 06:39
元素定位---使用 XPath 定位元素
Selenium
WebDriver
支持使用Xpath表达式来定位元素。利用Xpath来定位元素非常方便,但是,便捷的定位策略牺牲了系统的性能。XPath和CSS中最重要的区别在
adonis_lu37
·
2020-08-10 06:44
python爬虫的简单项目之爬取成语
fromseleniumimport
webdriver
fromidiomimportDbHandleoption=
webdriver
.ChromeOptions()option.add_argument
WZH577
·
2020-08-10 06:59
Python爬虫及基础
爬虫实战系列(二):利用Selenium自动获取B站建国同志视频信息
一.Selenium简介最近博主在学习爬虫的过程中遇到了一个强无敌的工具—Selenium,通过它使得我们的爬虫过程可以像真正的用户在手工操作一般十分有趣,Selenium的大概编程思路如下:获取一个
WebDriver
斯曦巍峨
·
2020-08-10 05:22
爬虫实战
python从入门到放弃篇41(selenium库,requests库,lxml库,time库,os模块,jieba库,pyecharts库)实现爬取书籍信息,并进行可视化
爬虫部分的完整代码:fromseleniumimport
webdriver
fromlxmlimportetreeimportrequestsimporttimeimportosoptions=
webdriver
.Chr
Mr.Pan_学狂
·
2020-08-10 05:16
等待页面某元素加载完成的方法
allocationcommon中写个方法//等待页面某元素加载完成(参数:type元素定位类型、by该类型对应的定位值)publicstaticvoidload(Stringtype,Stringby){
WebDriver
Waitwait
这里有糖吃
·
2020-08-10 05:19
Python爬取淘宝搜索页,使用Selenium+BeautifulSoup
分析得到结果使用Selenium时注意页面的加载判断,以及加载超时的异常处理importjsonimportrefrombs4importBeautifulSoupfromseleniumimport
webdriver
fromselenium.common.exceptionsimportTimeoutExcept
emmm又饿了
·
2020-08-10 04:24
爬虫学习
python
selenium
selenium(java)利用testng监听test运行失败时截图
TestngListenerScreenshot.class})publicclassTestImsextendsbaseDriver{@Test//打开首页publicvoidopenPage(){//System.setProperty("
webdriver
.chrom.driver
看海与听海
·
2020-08-10 03:12
软件测试
selenium
性能测试
jmeter
Java
Selenium
webdriver
如何拿到页面的加载时间
这个问题与语言无关,对于现代浏览器来说,使用window.performance.timing这个对象就好了。用execute_script方法(java用executeScript)方法执行window.performance.timing。一般来说,下面的值都是可以拿到的connectEnd1351036536696connectStart1351036536696domComplete135
weixin_34268310
·
2020-08-10 03:51
selenium 操作浏览器
本篇文章介绍selenium操作浏览器阅读目录浏览器最大化前进,后退,刷新截图操作模拟鼠标操作杀掉Windows浏览器进程浏览器最大化前进,后退,刷新publicstaticvoidtestBrowser(
WebDriver
driver
weixin_33978044
·
2020-08-10 03:47
解决chrome运行报错unknown error: cannot get automation extension
FAILEDCONFIGURATION:@BeforeClassbeforeClassorg.openqa.selenium.
WebDriver
Exception:unknownerror:cannotgetautomationextensionfromunknownerror
George_Fal
·
2020-08-10 02:13
【Python网络编程】selenium之等待页面异步加载完成
#需要导入的库importosimporttimefromseleniumimport
webdriver
fromselenium.
webdriver
.support.waitimport
WebDriver
Waitfromselenium.
webdriver
.supportimportexpected_conditionsasECfromselenium.
webdriver
.common.byimp
weixin_30855099
·
2020-08-10 02:28
【原创】selenium 等待某个元素加载完成
selenium设置等待某个元素加载完成fromseleniumimport
webdriver
importselenium.
webdriver
.support.uiasuiuser_name="public"options
zhipeng-python
·
2020-08-10 01:36
python
selenium3+java 控制浏览器窗口操作
访问的页面在自定义尺寸下运行,对其样式进行测试,
WebDriver
提供了manage().window().setSize()方法来设置浏览器窗口的大小。
春风十里、
·
2020-08-09 23:42
基础篇
持续更新
..
selenium如何处理H5视频
示例1:fromseleniumimport
webdriver
fromtim
Huny
·
2020-08-09 23:00
selenium多表单之间切换
的元素,表单引用了其他页面的链接,真正的页面数据没有出现在源码中,但是在浏览器中可以看见,与浏览器的多个窗口类似为什么需要切换:在web应用会遇到frame/iframe表单嵌套的应用,selenium的
WebDriver
属于自己的世界
·
2020-08-09 23:00
bas64解码保存图片后无法显示——知乎爬虫登录验证码识别
背景:最近在爬知乎,先搞一个自动登录,我是用的是可视化的
webdriver
来模拟登陆,因为知乎有反爬手段,使用代码输入账号密码几乎百分百出验证码,验证码是一个中文的一个英文,英文较容易,如果出了中文大不了重新登陆此验证码是一个
洋子_
·
2020-08-09 23:48
Python
爬虫
python 爬虫 selenium 与 chromedriver
spm=a2c6h.14029880.0.0.735975d7UtIpWk代码模拟浏览器操作&自动化测试#encodeingutf-8importrequestsfromseleniumimport
webdriver
import
ruize-coding
·
2020-08-09 23:00
Python+Selenium定位元素报:Other element would receive the click---被遮挡,点击事件被上级元素获取的处理
需要定位“办理”按钮CSS_SELECTOR定位(单属性定位):“span[title='办理']”报错如下:selenium.common.exceptions.
WebDriver
Exception:
julielele
·
2020-08-09 21:53
python
selenium
python
Selenium浏览器自动化执行任务,以及在VMLogin 中文版反指纹浏览器中使用Selenium自动执行任务说明
VMLogin中文版反指纹浏览器自动化基于Selenium
WebDriver
。通常情况下,如果您运行Selenium代码,首先将连接到Chrome驱动,然后设置您所需要的功能。
VMlogin中文版防关联浏览器
·
2020-08-09 20:23
VMLogin.cc
指纹浏览器
selenium
python
java
web
docker
WebDriver
拾级而上·之九 等待页面加载元素完成
在selenium-
webdriver
中我们用两种方式进行等待:明确的等待和隐性的等待。一、明确的等待明确的等待是指在代码进行下一步操作之前等待某一个条件的发生。
打杂人
·
2020-08-09 19:18
自动化测试+Selenium
selenium三种方式页面等待
为什么需要等待浏览器进行渲染内容过多,网速太慢为了提高脚本的稳定性,我们需要在脚本中增加等待时间,否则报错强制等待time.sleep(6)显式等待fromselenium.
webdriver
.common.keysimportKeysfromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.support.uiimportWeb
风华浪浪
·
2020-08-09 19:15
p爬虫
上一页
99
100
101
102
103
104
105
106
下一页
按字母分类:
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
其他