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
centos安装chrome和chromedriver
当爬取带有iframe的网页数据时,如果直接用requests库去获取,返回结果是不包含iframe中内容的,网上了解可以用Selenium+
webdriver
来模拟浏览器访问爬取,于是在自己的虚拟机上安装了
陆多多
·
2020-08-16 21:55
CTP
get方式发送cookie
importcom.google.gson.JsonObject;importcom.google.gson.JsonParser;importorg.openqa.selenium.By;importorg.openqa.selenium.
WebDriver
qq_35577329
·
2020-08-16 20:16
java
selenium
webdriver
打开Firefox和chrome
my.oschina.net/dyhunter/blog/94090一、Firefoxpackagelesson1;importorg.openqa.selenium.By;importorg.openqa.selenium.
WebDriver
anualday
·
2020-08-16 18:46
自动化测试
基于网页聊天室的自动化测试脚本
自动化脚本主要测试内容:用户登录功能用户注册功能页面下方超链接的自动跳转#coding=utf-8importtimefromseleniumimport
webdriver
importunittest,
CUNZ_1997
·
2020-08-16 17:19
selenium通过add_cookie()添加cookie
selenium通过add_cookie()添加cookie,再次访问网站时,服务器直接读取浏览器cookie第一次登陆手动输入用户名密码#-*-coding:utf-8-*-fromseleniumimport
webdriver
fromtimeimportsleepdriver
路遥车慢
·
2020-08-16 17:27
python
pycharm喜马拉雅音乐抓取
喜马拉雅近期做了反爬,用requests请求页面得到的是空白,所以应该是改成动态的了,然后使用selenium+
webdriver
来获取的,
webdriver
可以设置成不打开浏览器,一定要想着关闭时用driver.quit
刘爱超
·
2020-08-16 16:36
1
1.python+selenium利用cookie,跳过验证码直接登录
方法1在登录时,叫代码等待一段时间,然后手动输入验证码#coding:utf-8fromseleniumimport
webdriver
importtimeurl='http://192.168.XXX:
weixin_30363509
·
2020-08-16 15:41
selenium+ python3 添加cookie绕过验证码登陆(二)
selenium+python3添加cookie绕过验证码登陆1.背景介绍最近做一个Web自动化项目,但是每次登陆都需要验证码验证,真的是头痛啊,破解验证码需要对验证码图片进行训练模型并且识别率低,查找文档,发现
webdriver
三流抠脚程序员
·
2020-08-16 14:53
爬取QQ群成员信息并批量发送QQ邮件(带傻瓜操作界面)
fromseleniumimport
webdriver
frombs4importBeautifulSoupfromsmtplibimportSMTP_SSLfromemail.mime.textimportMIMETextfromemail.headerimportHeaderimporttimeimportreimportwin32apiimportwin32conimporttkintercl
努力进步加油
·
2020-08-16 14:44
爬虫
selenium-python编写unittest运行代码时候不执行
使用python+selenium编写简单的自动化脚本的时候,自己写出简单的代码如下:importunittestfromseleniumimport
webdriver
importtimeclassLoginCase
be_x_man
·
2020-08-16 12:52
python-selenium -- 跳过登录验证
1.1在谷歌浏览器中输入chrome://version,查看安装目录及缓存目录1.2代码实现在执行代码之前,关闭已打开的谷歌浏览器,防止chromedriver挂起1fromseleniumimport
webdriver
2importtime34
a7916314
·
2020-08-16 12:33
python+selenium+PIL自动登陆网站
fromseleniumimport
webdriver
#引入selenium模块opt
帅气的搬砖工
·
2020-08-16 08:07
爬虫
python
python+selenium自动化测试封装
测试框架就是一个集成的体系,包括测试功能的函数库(如导入的包),测试数据源(测试数据),测试对象识别标准(
webdriver
的各个api),以及可充用的模块(结构优化),自动化测试框架主要经过模块驱动测试
胡桓
·
2020-08-16 07:44
自动化测试
Selenium alert 弹窗处理
alert弹窗,Selenium提供如下方法:序号方法/属性描述1accept()接受2dismiss()取消3text获取显示的文本4send_keys()输入内容对应处理方式:alert(警告信息):
WebDriver
.switch_to.alert.accept
Leo_Fighting2020
·
2020-08-16 06:01
模拟登录超星
fromseleniumimport
webdriver
fromPILimportImageimporttesserocrimportreimportos#删除截图和验证码deftrylog(p_address
是建威啊
·
2020-08-16 03:00
(3)PO模型之登录模块
我们通过对象提供的API,找到元素自动化脚本分为三层对象层用于存放页面元素定位和控件操作逻辑层封装一些常用的功能模块,登录功能业务层真正的测试用例操作部分封装find_element函数fromselenium.
webdriver
.support.uiimport
WebDriver
Waitdeffind_element
95%
·
2020-08-16 03:17
Selenium自动化
selenium编程02-简单的PO模式登陆163邮箱
fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromtimeimportsleepclassPage():login_url
weixin_34212762
·
2020-08-16 03:05
python3.x + selenium 3.x 遇到的问题:Exception ignored in:
fromseleniumimport
webdriver
importtimedr=
webdriver
.Firefox(executable_path='/Users/jinwenxin/desktop/pythonPractice
weixin_34071713
·
2020-08-16 02:47
最简单模拟登陆淘宝
不用其他别的库,就用selenuim先用微博绑定淘宝再用以下代码,就可以了1fromseleniumimport
webdriver
2fromselenium.
webdriver
importChromeOptions3importtime4option
CGGAO
·
2020-08-16 02:16
WebDriver
Exception:Message:'geckodriver'executable needs to be in Path
我在windows10下做Selenium
WebDriver
启动浏览器需要加载浏览器的驱动,这里由于高版本的火狐浏览器需要下载geckodriver-v0.16.1下载地址:http://download.csdn.net
荒之凡Charon
·
2020-08-16 02:43
使用unittest扩展功能测试
创建functional_tests.py文件,代码如下:fromseleniumimport
webdriver
importoschrome_driver=os.path.abspath(r"C:\Users
Taswy
·
2020-08-16 01:33
Django
测试
PO模式之浏览器的封装
fromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionsfromcommonimportconfig_valueimportoscurrent_path
new_20
·
2020-08-16 00:30
一个简单的web自动化测试用例(
webdriver
与 unittest 结合)
#coding=utf-8fromseleniumimport
webdriver
importunittestimporttimeimportsysreload(sys)sys.setdefaultencoding
Candice_92
·
2020-08-15 23:57
selenium
利用Python的unittest单元测试框架的discover方法批量执行脚本用例
/usr/bin/python#-*-coding:utf-8-*-fromseleniumimport
webdriver
importtime,osfromselenium.w
dipihuo0431
·
2020-08-15 22:26
python unittest 测试用例的添加
#coding=utf-8fromseleniumimport
webdriver
importunittestclassLogin(unittest.TestCase):@classmethoddefsetUpClass
流浪的python
·
2020-08-15 22:18
自动化测试
封装好批量执行测试用例
fromtkinterimport*fromseleniumimport
webdriver
importtkinterastkfromtkinterimportscrolledtext,messageboxfromtimeimportsleepfromtkinterimportttkimportxlrdimportrequestsimportjsonimportqrcodeimportunittes
caiyong_
·
2020-08-15 22:03
python-tkinter
login页面设计模式po(page object)
driver和基类封装DriverBase:packageHelloMaven.base;importorg.openqa.selenium.By;importorg.openqa.selenium.
WebDriver
Sandy28
·
2020-08-15 22:42
Java
selenium对新版Edge进行自动化操作
操作如下:msedgedriver.exe下载链接:(看清版本号)https://developer.microsoft.com/en-us/microsoft-edge/tools/
webdriver
Powehi777
·
2020-08-15 21:54
Python
利用爬虫将PDF的参考文献放在word中
py3.5+
webdriver
+beautifulsoup+正则表达式最近实验室老是让我翻译论文,翻译的时候总觉得参考文献太麻烦:1.PDF是分栏的,不想去做段落重排2.格式啥的太烦今天忽然就想用百度学术里面的
LZL_YLP
·
2020-08-15 21:46
UI 自动化到底要不要用 Page Object 模式?
testerhome上面看到的关于UI自动化PO模式的好文章,转载到这里来原贴地址:https://testerhome.com/topics/19900一、PageObject模式python
webdriver
LuoZelin1989
·
2020-08-15 21:02
自动化
selenium自动化测试框架之PO设计模式
##传统测试脚本的弊端测试脚本分离,维护成本高可扩展性差复用性低等PageObject设计模式PO的核心要素:在PO模式中抽象封装成一个BasePage类,该基类应该拥有一个只实现
webdriver
实例的
weixin_34246551
·
2020-08-15 21:00
金数据统计表自动填写
然后想到用selenium的
webdriver
,使用浏览器模拟人工操作,这个库的函数和js挺像,于是想起
wlsdx
·
2020-08-15 20:06
Selenium使用之——键盘操作方法
a.键盘按键用法想要调用键盘按键操作,需要引入keys包:1fromselenium.
webdriver
.common.keysimportKeys然后通过send_keys()调用按键send_keys
General_单刀
·
2020-08-15 19:48
Selenium
测试工具
SoapUI + Selenium
Webdriver
自动化测试学习
SoapUI可以集成Selenium
Webdriver
,然后在SoapUI中可以用Groovy来写自动化测试用例。Groovy是基于Java的,会Java的使用Groovy毫无压力。
wwwqjpcom
·
2020-08-15 17:31
自动化测试
SoapUI
Selenium
Webdriver
pytest_html报告报错截图+失败重跑
conftest.py文件里,这样用例运行时,只要检测到用例实例,就调用截图的方法,并且把截图存到html报告上#conftest.py文件#coding:utf-8fromseleniumimport
webdriver
imp
weixin_38168559
·
2020-08-15 16:03
爬虫滑动,点选文字图片验证码破解
携程破解滑动和点选文字图片验证码fromseleniumimport
webdriver
fromselenium.
webdriver
importActionChainsimporttimeimportbase64fromPILimportImagefromaipimportAipOcr
码小匠---千少
·
2020-08-15 16:31
selenium常用的三种等待方式:sleep(),隐性等待,显性等待
1.强制等待第一种也是最简单粗暴的一种办法就是强制等待sleep(x),强制让闪电侠等x时间fromseleniumimport
webdriver
importtime#会开会话driver=
webdriver
.Chrome
夜莺_Cody
·
2020-08-15 15:15
Eclipse中使用Maven配置
WebDriver
+TestNg自动化测试环境(一)
1、jdk+eclipse的安装(1)、jdk下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html(2)、eclipse下载地址:https://www.eclipse.org/downloads/download.php?file=/oomph/epp/oxygen/R/e
阿飞哥-Jeffrey
·
2020-08-15 14:59
Selenium
groovy 通过 selenium 操作浏览器
/main/groovy/org/zbq/Main.groovypackageorg.zbqimportorg.openqa.selenium.Byimportorg.openqa.selenium.
WebDriver
importorg.openqa.selenium.firefox.FirefoxDriverimportorg.openqa.selenium.firefox.Firef
chouxing7487
·
2020-08-15 13:07
7.解决在python中用selenium启动FireFox浏览器启动不了的方法
首次在利用python中的selenium启动FireFox浏览器时可能碰到如下问题当输入如下代码时:fromseleniumimport
webdriver
brower=
webdriver
.Firefox
Simon0112
·
2020-08-15 13:14
python
webdriver
测试框架-行为驱动例子
安装行为驱动模块lettuce(卷心菜)模块pipinstalllettuceSuccessfullyinstalledargparse-1.4.0colorama-0.3.9extras-1.0.0fixtures-3.0.0funcsigs-1.0.2fuzzywuzzy-0.16.0lettuce-0.2.23linecache2-1.0.0mock-2.0.0pbr-4.1.0python
weixin_30263073
·
2020-08-15 12:21
Python自动化测试系列[v1.0.1][浏览器静默模式启动]
#-*-coding:utf-8-*-fromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionsimporttime
Davieyang.D.Y
·
2020-08-15 12:32
Java自动化测试系列[v1.0.0][修改页面元素属性]
packageUtil;importorg.openqa.selenium.JavascriptExecutor;importorg.openqa.selenium.
WebDriver
;importorg.openqa.selenium.WebElement
Davieyang.D.Y
·
2020-08-15 12:46
Java自动化测试
修改页面元素属性
selenium设置请求头,防止被识别
1.Chrome#添加请求头option=
webdriver
.ChromeOptions()option.add_argument('User-Agent=Mozilla/5.0(WindowsNT10.0
木下瞳
·
2020-08-15 09:03
Selenium
selenium自动化测试实现对网站的登陆(使用java编写)
packagebrand;importorg.junit.Test;importorg.openqa.selenium.By;importorg.openqa.selenium.
WebDriver
;importorg.openqa.selenium.WebElement
被遗忘的秋天
·
2020-08-15 09:56
自动化测试
java
selenium.common.exceptions.
WebDriver
Exception: Message: 'chromedriver' executable needs to be in PAT
找不到driver的路径,需要将driver的路径加上部分参考:http://blog.csdn.net/972301/article/details/62238451【Python处理】1.零基础:如果从来没有装过Selenium,直接执行。pipinstallselenium2.升级安装:如果之前是Selenium2的用户,执行升级安装。pipinstall--upgradeselenium【
sandbar_
·
2020-08-15 09:15
Crawler
selenium
python
Selenium
webdriver
常用命令汇总
这段时间使用selenium
webdriver
做UI自动化,积累了一些心得,汇总了常用的命令。
z278718149
·
2020-08-15 09:37
selenium
selenium 模拟按键F12
#-*-coding:utf-8-*-__Author__="xiewm"__Date__="2016/5/1918:46"fromseleniumimport
webdriver
fromtimeimportsleepfromselenium.
webdriver
.com
Op小剑
·
2020-08-15 09:11
Selenium
selenium
webdriver
常用命令及演示代码
WebDriver
中一些最常用的Selenium命令1.获取网页获取网页有两种方法:使用Get方法-driver.get("www.yiibai.com");使用Navigate方法-driver.navigate
iSelenium
·
2020-08-15 09:33
Selenium
WebDriver
李笑来candy.one自动登陆签到领糖果
publicclassCandyOneSign{publicstaticvoidmain(String[]args)throwsFileNotFoundException{//System.setProperty("
webdriver
.gecko.driver
发生的发生飞
·
2020-08-15 09:55
通用网络技术
上一页
92
93
94
95
96
97
98
99
下一页
按字母分类:
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
其他