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
基于Java+Selenium的WebUI自动化测试框架(六)---浏览器初始化
(以firefox为例)System.setProperty("
webdriver
.gecko.driver","c:\\geckodriver.exe");driver
SHUAI1972
·
2020-08-09 19:12
基于Java+Selenium的WebUI自动化测试框架(四)-----设置监听类
packagewebui.xUtils;importorg.openqa.selenium.
WebDriver
;im
SHUAI1972
·
2020-08-09 19:40
python
java
测试
爬去东方财富网龙虎榜(wechat:15353378609)
fromseleniumimport
webdriver
fromlxmlimportetreeimportjsonimportosimporttimedefwrite_to_file(content,p_name
AbrahamJIA
·
2020-08-09 18:09
如何智能的等待页面加载完成
selenium-
webdriver
为我们提供了一个Wait类来完成类似的等待
weixin_34261415
·
2020-08-09 18:18
selenium中隐式等待 & Frame的切换
等待元素出现隐式等待用
WebDriver
对象的implicitly_wait方法。这个方法有一个参数,指明等待最长时间。
枷锁#
·
2020-08-09 15:47
Selenium
06自动登录淘宝
fromseleniumimport
webdriver
fromselenium.
webdriver
.support.uiimport
WebDriver
Waitclasstabao_info:def__init
月为暮
·
2020-08-09 13:00
06自动登录淘宝
fromseleniumimport
webdriver
fromselenium.
webdriver
.support.uiimport
WebDriver
Waitclasstabao_info:def__init
月为暮
·
2020-08-09 13:00
使用
WebDriver
Manager 遇到的问题
org.slf4j.impl.StaticLoggerBinder”.解决方法:在pom.xml添加如下依赖即可org.slf4jslf4j-simple1.7.212.io.github.bonigarcia.wdm.config.
WebDriver
ManagerException
Lucas__liu
·
2020-08-09 09:52
selenium
自动化测试
随笔
DriverManager
maven
python+selenium中的wait事件
selenium中的wait事件1.显示用法(
WebDriver
Wait)
WebDriver
Wait的使用配合该类的until()和until_not()方法,就能够根据判断条件而进行灵活地等待了。
不码不成才
·
2020-08-09 08:15
python
python+selenium,打开浏览器时报selenium.common.exceptions.
WebDriver
Exception: Message: 'chromedriver' execut
有一年多没写web自动化了,今天搭建环境的时候报了一个常见错误,但是处理过程有点闹心,报错就是常见的找不到驱动《selenium.common.exceptions.
WebDriver
Exception
linkenzhou
·
2020-08-09 07:26
autotest
python
js中scrollIntoView()的用法
)参数默认为true参数为true:调用该函数,页面发送滚动,使element的顶部与视图(容器)顶部对齐参数为false:使element的底部与视图(容器)底部对齐三.使用场景在selenium+
webdriver
anywen5590
·
2020-08-09 07:05
python3的unittest中使用test suite(测试套件)执行指定测试用例
示例代码module.pyclassbaidumodule():def__init__(self,driver,):self.dr=driver#不能在类中再次导入
webdriver
两边的driver等于两个窗口
(.*)释然
·
2020-08-09 03:23
Python+selenium
mac selenium报错selenium.common.exceptions.
WebDriver
Exception: Message: 'Unexpected error launching In
fromseleniumimport
webdriver
browser=
webdriver
.Chrome()browser.get('http://www.baidu.com/')browser.find_element_by_id
z_erduo
·
2020-08-09 03:06
selenium
问题记录
QQ音乐本地下载(python爬虫)
fromseleniumimport
webdriver
aswbimportrequestsimpor
咩小饬
·
2020-08-09 03:13
爬虫
面向对象
python3 appium获取元素属性get_attribute
获取text#coding:utf-8fromappiumimport
webdriver
fromtimeimportsleepdesired_caps={'platformName':'Android'
xugexuge
·
2020-08-09 03:05
python3
appium
实现今日头条-西瓜视频-抖音视频自动化上传(如希望无人值守长期定时执行的话,需自行优化代码)
#首次使用selenium登录,并将cookies存为文件fromseleniumimport
webdriver
importtimeimportjsonbr=
webdriver
.Chrome()br.get
__Pythoner__
·
2020-08-09 03:26
爬虫
自动化
搭建微博Cookies池(一)
使用Redis数据库进行账号信息的存储与读取配置好
webdriver
Chrome的浏览器插件开始搭建1.存储模块的搭建:需要存储的内容无非就是账号,密码,cookies这三样。
破法者之终结
·
2020-08-09 02:37
微博爬虫
selenium模拟登陆豆瓣
fromseleniumimport
webdriver
fromlxmlimportetreeimportrequestsdiver=
webdriver
.Chrome()url='http://www.douban.com'headers
weixin_45197326
·
2020-08-09 02:39
爬取知乎壁纸:selenium模拟登陆获取cookies,再将cookies传递给requests
以为知乎网爬取壁纸为例,代码如下:fromseleniumimport
webdriver
importrequestsfromlxmlimportetreeimporttimeimportos#使用selenium
leedeancsdn
·
2020-08-09 02:15
python爬取qq音乐下载歌曲
python爬取qq音乐下载歌曲完整代码:importrequestsimportjsonfromurllib.requestimporturlretrievefromseleniumimport
webdriver
importreimportosdefget_music_url
Ricardo.Baby
·
2020-08-09 01:01
python
科技
IT
selenium.common.exceptions.
WebDriver
Exception: Message: unknown error: Chrome failed to start: exite
用python写了个爬虫,pycharm中运行正常,linux下crontab运行报错linux下运行报错:selenium.common.exceptions.
WebDriver
Exception:Message
梦 醒 人 离℡
·
2020-08-09 01:59
爬虫
selenium 实现模拟登录
selenium模拟登录:爬虫在爬取某些必须登录才能可见数据的网站是,可以使用selenium模拟浏览器登录请求,以下为模拟登录微博的源码:fromseleniumimport
webdriver
fromscrapy.selectorimportSelectorbrowser
桃桃桃桃桃桃”
·
2020-08-09 01:27
Selenium2(
WebDriver
)总结(一)---启动浏览器、设置profile&加载插件
本文主要记录下在使用selenium2/
webdriver
时启动各种浏览器的方法、以及如何加载插件、定制浏览器信息(设置profile)等环境搭建可参考我的另一篇文章:http://www.cnblogs.com
weixin_34277853
·
2020-08-09 00:46
利用python+seleniumUI自动化登录获取cookie后再去测试接口,今天终于搞定了
#coding=utf-8fromseleniumimport
webdriver
fromselenium.common.exceptionsimportNoSuchElementExceptionimportunittest
weixin_34068198
·
2020-08-09 00:39
scrapy 处理动态加载,使用phantomjs
前言:几种渲染js,ajax插件对比(1)selenium+
webdriver
(如firefox,chrome等)。这要求你系统有对应浏览器,并且过程中要全程开浏览器。
weixin_33697898
·
2020-08-09 00:57
selenium 执行driver =
webdriver
.Firefox()时报错解决方案
执行driver=
webdriver
.Firefox()时报错如下:Traceback(mostrecentcalllast):File"D:/Python27/baidu.py",line2,indriver
weixin_30950607
·
2020-08-09 00:19
python+selenium,实现带有验证码的自动化登录功能
1importtime2fromseleniumimport
webdriver
3fromPILimportImage45#创建一个浏览器对象6browser=
webdriver
.Chrome()7browser.maximize_window
weixin_30809173
·
2020-08-08 23:20
unittest批量执行测试用例
unittest中有这样处理:unittest.TestLoader().discover()第一个文件test_case1.pyfromseleniumimport
webdriver
importunittestclassBaidu_Link
weixin_30700099
·
2020-08-08 23:28
selenium.common.exceptions.
WebDriver
Exception: Message: unknown Error: cannot find Chrome binary
使用Chrome浏览器时,经常会遇到以下报错:浏览器没有调用起来selenium.common.exceptions.
WebDriver
Exception:Message:unknownError:cannotfindChromebinary
weixin_30667649
·
2020-08-08 23:20
(转)Selenium-11: Execute JavaScript with JavascriptExecutor
OutlineSometimeswecannothandlesomeconditionsorproblemswith
Webdriver
,webcontrolsdon’treactwellagainstseleniumcommands.Inthiskindofsituations
weixin_30561177
·
2020-08-08 23:55
Python3 Selenium自动化测试赋值出现:
WebDriver
Exception: Message: unknown error: call function result missing '.
Python3Selenium自动化测试赋值出现:
WebDriver
Exception:Message:unknownerror:callfunctionresultmissing'value'问题:在给予文本框赋值的时候出现错误信息
weixin_30449453
·
2020-08-08 23:59
自动化测试 -- 通过Cookie跳过登录验证码
fromseleniumimport
webdriver
driver=
webdriver
.Firefox()driver.get("https://www.baidu.com")#添加Co
u011159607
·
2020-08-08 22:19
selenium爬取知乎文章内容和图片
代码主要实现功能使用selenium+chrome自动登录知乎,查找问题,并把所有的文章(作者,赞同数,内容,图片)都保存在数据库中(mongodb)fromseleniumimport
webdriver
importtime
tracefiow
·
2020-08-08 22:32
python爬虫
使用selenium+chrome自动使用qq登录知乎代码
使用selenium自动登录知乎主要通过xpath和id查找元素fromseleniumimport
webdriver
importtimedefseleium_test(contents):globalbchrome_crawler
tracefiow
·
2020-08-08 22:32
文章标题
1.安装selenium模块cmd:pipinstallselenium2.fromseleniumimport
webdriver
没有消息就是最好的消息,即安装成功3.尝试控制Chrome下载驱动chromedriver
小鸡快跑09
·
2020-08-08 21:03
Python学习
selenium
webdriver
调用phantomJS报错
运行Python文件时报错情况如下:raise
WebDriver
Exception(“CannotconnecttotheService%s”%self.path)selenium.common.exceptions.
WebDriver
Exception
sumdeveloper
·
2020-08-08 21:47
爬虫-python
selenium登录百度
/usr/bin/python3#-*-coding:utf-8-*-fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.suppo
shykevin
·
2020-08-08 21:06
org.openqa.selenium.
WebDriver
Exception: unknown error: Chrome failed to start: exited abnormally已解决
org.openqa.selenium.
WebDriver
Exception:unknownerror:Chromefailedtostart:exitedabnormally(unknownerror
shadow_kong
·
2020-08-08 21:34
Jenkins自动化
selenium
Selenium无法定位元素的九种解决方案
一、frame/iframe表单嵌套
WebDriver
只能在一个页面上对元素识别与定位,对于frame/iframe表单内嵌的页面元素无法直接定位。
迷途的少年
·
2020-08-08 20:43
selenium
python
selenium之
WebDriver
Wait
今天还是补充一下
WebDriver
Wait的知识吧。
迷途的少年
·
2020-08-08 20:43
python
selenium
WebDriverWait
selenium滚动条操作
#不滑动滚动条也可以定位到元素定位页面的最后一条代码如下:fromseleniumimport
webdriver
fromtimeimportsleepdriver=
webdriver
.Chrome()#
迷途的少年
·
2020-08-08 20:43
python
selenium
解决selenium.common.exceptions.
WebDriver
Exception: Message: unknown error: call function result missin
(Sessioninfo:chrome=73.0.3683.103)(Driverinfo:chromedriver=2.30.477700(0057494ad8732195794a7b32078424f92a5fce41),platform=WindowsNT10.0.17134x86_64)报错如上,由于版本不兼容下面是谷歌浏览器与chromedriver的版本对应关系,供参考:-------
网络毒刘
·
2020-08-08 20:44
UnitTest案例
*-coding:utf-8-*-#@Time:2019/3/1520:29importunittestimportHTMLTestRunnerimporttimefromseleniumimport
webdriver
被狗吃掉的那几年
·
2020-08-08 19:53
python
关于爬虫利器 selenium 的bug
fromseleniumimport
webdriver
fromselenium.
webdriver
.common.action_chainsimportActionChainsfromselenium.
webdriver
.common.keysimportKeys
shuzhuang25
·
2020-08-08 19:15
爬虫
python
74 - selenium与Web页面交互
如果通过selenium控制Web页面,并模拟单继按钮的动作更多爬虫学习案例可查看我的“Python爬虫”专栏'''selenium'''fromseleniumimport
webdriver
importtimebrowser
若尘
·
2020-08-08 19:22
Python面试100讲
selenium控制web
webdriver
爬虫
Python
面试题
centos7中启动chrom报错selenium.common.exceptions.
WebDriver
Exception: Message: unknown error: Chrome faile
中安装了selenium和chrome后启动程序报错:raiseexception_class(message,screen,stacktrace)selenium.common.exceptions.
WebDriver
Exception
猫哥的鱼库
·
2020-08-08 19:55
数据采集
python 常见跳坑之selenium框架不支持phantomjs
时发现,selenium不在支持phantomjs,运行代码时,提示异常错误:unexpecredeof;网上找了一下,发现chrome支持无头模式,只需要添加代码块:fromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionschrome_options
qq_15390083
·
2020-08-08 18:08
重装系统后:selenium无法找到chrome--报错selenium.common.exceptions.
WebDriver
Exception: Message: unknown error: c
重装系统后:selenium无法找到chrome--selenium.common.exceptions.
WebDriver
Exception:Message:unknownerror:cannotfindChromebinary
python__reported
·
2020-08-08 18:47
重装系统
binary
自动化
selenium不支持PhantomJS的解决方法
新的selenium已经不支持PhantomJS这款浏览器了因此可以通过配置chrome的options进行替代fromseleniumimport
webdriver
#导入chrome选项fromselenium.
webdriver
.chrome.optionsimportOptionsimporttime
plumber2333
·
2020-08-08 18:34
python
. selenium.common.exceptions.
WebDriver
Exception: Message: unknown Error: cannot find Chrome binary
使用Chrome浏览器时,经常会遇到以下报错:浏览器没有调用起来selenium.common.exceptions.
WebDriver
Exception:Message:unknownError:cannotfindChromebinary
MIYA小诺
·
2020-08-08 18:58
驱动器
上一页
100
101
102
103
104
105
106
107
下一页
按字母分类:
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
其他