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
python自动化测试chrome设置
option=
webdriver
.ChromeOptions()option.add_experimental_option("excludeSwitches",["ignore-certificate-errors
douyunqian668
·
2020-08-22 01:27
Python自动化开发
Python利用selenium爬取行政区域存到MySQL里
fromseleniumimport
webdriver
importtimeimportpymysqlclassGovementSpider(object):def__init__(self):self.browser
我爱旺仔复原乳
·
2020-08-22 01:27
python
【Selenium2+Java自动化(4)】-模拟鼠标和键盘操作的基本方法
前言前面已经把环境搭建好了,这从这篇开始,正式学习selenium的
webdriver
框架。
djuanqn24973034
·
2020-08-22 01:26
selenium unable to set cookie,selenium 截图
seleniumunabletosetcookie问题在
webDriver
中,在一个
webDriver
登录后,相应的cookies是通过登录操作被保存到一个
webDriver
中,运行其他
webDriver
zoQ
·
2020-08-22 01:27
爬虫
selenium
天眼查企业查询爬虫
爬的是上面的那个页面fromseleniumimport
webdriver
fromselenium.
webdriver
.support.waitimport
WebDriver
Waitfromselenium.
webdriver
.supportimportexpected_conditionsa
IT-男神
·
2020-08-22 01:43
webdriver
问题小记
原文写于CmdMarkdown原文链接:https://www.zybuluo.com/CYTand/note/1208879在尝试《Jenkins创建构建任务》这个项目时遇到一些问题,本文用于记录解决方法(可以说是很小白的方法了)。问题主要在这一步:C:\Users\wis01>pythond:/py_tests.py输出为:[5956:4996:0710/155156.898:ERROR:in
baichen2015
·
2020-08-22 01:39
WebDriver
一些常见问题的解决方法
1.ExceptionNoSuchElementException:解决方法:1)检查目标element的locator2)如果locator是正确的,尝试在查找element之前等待页面的加载3)如果等待了很久也一直没有找到element,尝试使用另外一个locator2.ExceptionNoSuchWindowException解决方法:1)检查窗口的locator2)在找窗口之前,等到页面
aihuixx024116
·
2020-08-22 01:13
python+selenium定位元素时无法选中
获取当前元素焦点方法一:switch_to.active_element方法二:需要引包(fromselenium.
webdriver
.common.action_chainsimportActionChains
风1过无痕
·
2020-08-22 01:58
个人笔记
selenium_
webdriver
(python)鼠标操作详解
#coding=utf-8fromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeys#要使用鼠标操作,首先需要引入ActionChains
visual2015
·
2020-08-22 01:10
Python
selenium打开的网页如果不关闭,page_source的内容会叠加
代码如下#抓取一张网页审查元素(成功)fromseleniumimport
webdriver
fromtimeimportsleep,ctimeimportrequestsimportre
Richarchard
·
2020-08-22 00:43
python
selenium
page_source
driver.get()
叠加
python
[解决]python之selenium
webdriver
调用geckodriver驱动驱动Firefox
问题用过一段时间的Chromedriver,但是Firefox的网页截图定位更加准确,就转到火狐一派了,从网站上下载geckodriver,并放到python的目录下,出现下列问题:Exception:Failedtofindfirefoxbinary.Youcansetitbyspecifyingthe······出问题时候的各包和浏览器的版本:Firefox-version:63.0.1(64
NH4L
·
2020-08-22 00:13
python
selenuim
selenium
webdriver
定位不到元素的五种原因及解决办法
1.动态id定位不到元素forexample://WebElementxiexin_element=driver.findElement(By.id("_mail_component_82_82"));WebElementxiexin_element=driver.findElement(By.xpath("//span[contains(.,'写信')]"));xiexin_element.cl
Leolu007
·
2020-08-22 00:42
selenium自动化测试
绕过验证码,使用chrome的已存在的cookie访问网站
好处是跳过登录页面的验证码识别;'''fromseleniumimport
webdriver
fromtimeimportsleepimportos#chrome存放cookie的路径profile_dir
oOo右右
·
2020-08-22 00:26
Selenium自动化之模拟键盘操作(一)单键操作
#模拟键盘操作fromselenium.
webdriver
.common.keysimportKeyselement.send_keys(Keys.F12)element.send_keys(Keys.ENTER
DansonC
·
2020-08-22 00:58
python
自动化
selenium中的常用命令/模块/参数总结
1.导入所需要的模块fromselenium.
webdriver
.chrome.optionsimportOptionsfromseleniumimport
webdriver
fromselenium.
webdriver
.support.uiimport
WebDriver
Waitfromselenium.
webdriver
.common.byimportByfromselenium.webdrive
风前絮啊
·
2020-08-22 00:24
spider
广西公需科目登录入口 自动学习模拟登陆流程python selenium
目标网址广西专技人员网络培训系统:http://zhuanji.gxrspx.com/还可以用这个方法抓取广西公需科目考试答案导入库:fromseleniumimport
webdriver
browser
18923489164
·
2020-08-22 00:13
爬虫
Selenium中级 | 在Selenium中模拟键盘操作
以下是基于Java语言在Selenium
WebDriver
中模拟键盘操作的一些常用方法总结操作单个按键比如按回车键、按F5进行页面刷新、按F11将窗口设为全屏模式等。
YOYO测试
·
2020-08-22 00:02
Selenium
中级操作方法
python从入门到放弃篇39(selenium库,requests库,正则表达式re,系统模块os)实现皇后大道东的音频爬取,并保存到本地。
完整代码:fromseleniumimport
webdriver
fromlxmlimportetreeimpo
Mr.Pan_学狂
·
2020-08-22 00:17
python爬虫
webdriver
元素操作-键盘(python+selenium)
虽然知道有这个东西,但一直没有实际用过,项目中遇到了,就总结一下在使用之前需要导入Keys模块fromselenium.
webdriver
.common.keysimportKeys1,组合键操作,使用
weixin_34306593
·
2020-08-22 00:30
selenium python怎么禁用显示 "DevTools on ws..."
seleniumpython怎么禁用显示“DevToolsonws…”chromev70,chromedriverv2.42Solution:fromseleniumimport
webdriver
options.add_experimental_option
shuidefu
·
2020-08-22 00:30
python
Selenium
Webdriver
常见问题
问题一:Java+seleniumchrome常见的问题
WebDriver
Exception:unknownerror:callfunctionresultmissing'value'运行chrome浏览器报错
JavaPub-rodert
·
2020-08-22 00:48
爬虫
Java爬虫框架汇总
Selenium获取网页数据
#coding:utf-8fromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionsimporttimeimportosdefget_url_html
普天&同庆
·
2020-08-22 00:53
算法
selenium模拟fireFox浏览器,爬取网页信息
开发环境:python2.7#-*-coding:utf-8-*-#实现了通过selenium爬取网站所有的信息fromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeysimportredefpageNum
蓝鲸123
·
2020-08-22 00:22
爬虫
网易云的爬取
#引入Selenium模块fromseleniumimport
webdriver
#进入谷歌浏览器browser
ge小琦
·
2020-08-22 00:07
Selenium+BeautifulSoup实现对京东商品完整数据的爬取!
一、完整代码及注释分析fromseleniumimport
webdriver
importtimeimportosfromselenium.
webdriver
.chrome.optionsimportOptionsfromselenium.
webdriver
importChromeOptionsfrombs4importBeautifulSoup
爬遍天下无敌手
·
2020-08-22 00:06
可视化
selenium
html
js
python
python从入门到放弃篇43(selenium库,wordcloud库,pyecharts库)爬取名人名言,词云分词并统计词频,pyecharts分段可视化
爬虫部分的代码:fromseleniumimport
webdriver
fromrandomimportrandintimporttimeurl='http://quotes.tosc
Mr.Pan_学狂
·
2020-08-22 00:05
python数据分析例子
python
selenium
可视化
python 使用selenium和
webdriver
.Chrome 自动化测试和自动化延迟抓取网页数据
环境的安装1.python中安装好selenium包pipinstallselenium如果不行请接着往下看python环境安装selenium和手动下载安装selenium的方法方法1:cmd环境下,用pipinstallselenium可能会很慢方法2:下载selenium安装包手动安装下载地址:https://pypi.org/project/selenium/选择扩展名为gz的源码包进行下
丿灬安之若死
·
2020-08-22 00:25
005python
python爬虫入门(三)
webdriver
就必须对一个页面加载开始到结束干了什么有一些了解,然后找出正真的url.还得伪造一些headers信息.如果是复杂的爬虫(不止是爬一个页面,而是涉及网站登录,多个组合动作).requests就很麻烦了.那就用
webdriver
神之试炼者
·
2020-08-21 23:46
python
python 批量下载地理空间数据云
28-地理空间数据云下载的基础上,解决了其翻页后下载报错的问题,成功下载了2万多条MODIS中国合成产品–MODLT1D中国1KM地表温度每天产品数据完整程序如下:fromseleniumimport
webdriver
importtimefromselenium.
webdriver
.common.keysimportKeysfromselenium.
webdriver
.supportimpo
毛发浓密的猿工科研备忘
·
2020-08-21 23:53
译:selenium
webdriver
(python)
如果翻译的很烂,原文档地址:http://docs.seleniumhq.org/docs/03_
webdriver
.jsp#firefox-driverselenium
webdriver
注:我们不断的更新这份文档
weixin_34238642
·
2020-08-21 22:43
【企业级推荐系统实践】Scrapy爬虫爬取新浪数据
实现目标:1.通过scrapy框架爬取新浪五个分类主页的数据信息2.并实现持久化存储进mysql数据库主要技术路线:scrapy,selenium,
webdriver
,datetime,re,python
Johnny_sc
·
2020-08-21 22:56
爬虫
推荐系统
python
python+selenium2学习笔记
webdriver
-15下载文件
下载文件略繁琐一点,当时好像是摘自网上的某篇博客,原作者记不清了,现贴上代码fromseleniumimport
webdriver
importosimporttime#为了能够让Firefox()实现下载
依山临水
·
2020-08-21 21:05
python写爬虫的时候,使用selenium的
Webdriver
遇到的坑
第一个坑:‘chromedriver’executableneedstobeinPATH.Pleaseseehttps://sites.google.com/a/chromium.org/ch解决办法:(我直接用的第二个办法)第一个解决方法:你去下载一个chromedriver然后放在指定文件夹并且加入PATH环境变量。结果是,我把chromedriver放进了chrome的文件夹,并且把那个文件
贪狼切
·
2020-08-21 21:30
python爬虫
淘宝+Selenium
title:淘宝+seleniumcategories:[爬虫笔记,代码]fromseleniumimport
webdriver
fromselenium.common.exceptionsimportTimeoutExceptionfromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.support.uiimportWebDr
Xiaoweidumpb
·
2020-08-21 21:32
python学习
用nodejs去做自动化测试---环境搭建
将浏览器驱动装入浏览器驱动安装,可以使用自动安装(chromedriver/geckodriver/iedriver)npminstallchromedriver--save在终端输入命令,在文件夹中创建selenium
webdriver
爱薄荷绿的哼哼
·
2020-08-21 20:30
使用PHP控制浏览器动作
chromedriver控制chrome执行操作流程:php脚本=>chromedriver=>chrome需要用到的软件翻墙工具chrome浏览器chromedriverchrome驱动程序php-
webdriver
php
Dorm_Script
·
2020-08-21 18:28
selenium
WebDriver
清空input的方式
做自动测试时,经常会出现某些文本框带有默认值的形式,此时我们为了输入我们预期的数据,就需要我们对默认值清楚后做处理。本文章提供四种方法//方法1publicstaticvoidsetElementValue(WebElementelement,Stringvalue){element.sendKeys(Keys.chord(Keys.CONTROL,"a"),value);//method1}//
一小平民
·
2020-08-21 18:33
TestNG
Python在使用
webdriver
.chrome查js内容太慢
参考链接:https://www.cnblogs.com/darkspr/p/11533119.html设置参数,让driver.get()方法不阻塞,亲测速度比之前的提升了不少,记录下!
2020越努力越幸运
·
2020-08-21 17:19
Python
Selenium:无法调用IE,报错java.lang.IllegalStateException
在使用Selenium调用IE时报错,java.lang.IllegalStateException:thepathtothedriverexecutablemustbesetbythe
webdriver
systemproperty
MOZYOT
·
2020-08-21 16:46
Selenium
Chrome对应
webdriver
版本
因为Chrome设置的是自动更新,有时候突然
webdriver
就报错了,最后查了半天发现是浏览器版本更新了,很无语记录一下selenium自动化测试时,
webdriver
与Chrome对应版本号网址:http
csdn怀
·
2020-08-21 16:54
selenium自动化
Selenium中常常会出现的问题
importorg.openqa.selenium.ie.InternetExplorerDriver;importorg.openqa.selenium.By;importorg.openqa.selenium.
WebDriver
谷_寒
·
2020-08-21 16:27
Java
selenium 配置 360极速浏览器(支持NPAPI)
#coding:utf-8#配置前先将谷歌的chromedriver放到360浏览器的目录下fromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionsimporttime
qq_15907907
·
2020-08-21 15:43
功能类型
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接
为了使用selenium
webdriver
,要选择匹配的Chrome与chromedriver。
lingyuncelia
·
2020-08-21 14:39
驱动谷歌浏览器执行用例时报错java.lang.IllegalStateException
java.lang.IllegalStateExceptionExceptioninthread"main"java.lang.IllegalStateException:Thepathtothedriverexecutablemustbesetbythe
webdriver
.chrome.driversystemproperty
柯基咯叽
·
2020-08-21 12:17
软件测试
Selenium ide导出
webdriver
脚本运行浏览器启动与selenium包兼容性
seleniumide录制脚本以后,导出TestCase.java脚本新建一个java项目导入seleniumjavalib包。下载地址:seleniumjava版本下载http://selenium-release.storage.googleapis.com/index.html把脚本导入项目。写main方法,实例Testcase调用setuptestcaseteardown方法。运行成功坑:
BugSuperMan
·
2020-08-21 09:55
自动化
Selenium 核心技术:通识
文章目录
WebDriver
运行原理元素定位的8种方法SeleniumWebElementWebElement属性常用方法本文中的demo演示代码
WebDriver
运行原理执行selenium测试过程:工程师写的自动化测试代码
东南飘雪
·
2020-08-21 09:33
Selenium
selenium
python
Microsoft Edge
WebDriver
在python使用中的配置
MicrosoftEdge
WebDriver
的安装与配置安装与配置在python3中的使用方法安装与配置第1步,下载(MicrosoftEdge
WebDriver
)[https://developer.microsoft.com
great-wind
·
2020-08-21 08:48
selenium+python面试题目总结,完整度80%,看看你会多少?
1.
WebDriver
原理
webDriver
是按照client/server模式设计,client就是我们的测试代码,发送请求,server就是打开的浏览器来打开client发出的请求并做出响应。
PathonDiss
·
2020-08-21 08:43
python自动化操作浏览器 识别滑动验证
importosfromseleniumimport
webdriver
fromselenium.
webdriver
.common.action_chainsimportActionChainsfromtimeimportsleepimporturllib.requestimportcv2importnumpyasnpimportxlrdfromxlutils.copyimportcopyfroms
萤火虫的微亮
·
2020-08-21 06:17
自动化
Python
selenium chrome驱动配置
#-*-coding:utf8-*-"""seleniumgoogle"""fromseleniumimport
webdriver
fromutils.user_agentimportGetHeadersfromfengchao.conf.configimportAPP_CONFpath
ivy_还在啊
·
2020-08-21 06:39
python
上一页
87
88
89
90
91
92
93
94
下一页
按字母分类:
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
其他