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
【Selenium】十分钟手把手带你学会
WebDriver
API
每个对象就会有专属的属性(特性),而在前端中,一个元素根据它的id,name,class等属性来定位,所以呢,
webdriver
中提供了一系列的对象定位方法,有以下8种:
龙洋静
·
2023-11-01 15:15
测试
selenium
测试工具
python+selenium自动化(一)
首先,从简单的登录页面开始:fromseleniumimport
webdriver
importtimefromselenium.
webdriver
.support.selectimportSelecturl
萌面香蕉
·
2023-11-01 13:16
Python的web自动化学习(五)Selenium的隐式等待(元素定位)
引言:
WebDriver
隐式等待是一种全局性的等待方式,它会在查找元素时设置一个固定的等待时间。
经历一个春
·
2023-11-01 08:21
python
前端
自动化
爬虫你还在用selenium吗,out了!
最近遇到了一件事情:我的chrome浏览器升级了,但是对应的
webdriver
还没有升级,我只能被迫的接受使用safari浏览器实现爬虫。
shigen01
·
2023-11-01 08:21
爬虫
selenium
测试工具
python 自动化平台的搭建
使用工具:IntelliJ+python+Django+MySQL+Navicatformysql+PyMySql+
webdriver
安装python这里采用的python2.7。
romanlan
·
2023-11-01 08:31
python
自动化测试平台
基于Selenium+Python的web自动化测试框架
Selenium主要包括三部分:SeleniumIDE、Selenium
WebDriver
和SeleniumGrid。
测试小鬼
·
2023-11-01 07:41
selenium
python
前端
软件测试
jmeter
测试工具
jenkins
做B站up主相薄爬虫
并不保证爬取所有想用的图片先是对up主相簿页爬所有图片动态的地址存在文本文件中fromseleniumimport
webdriver
fromselenium.common.exceptionsimportTimeoutExceptionfromselenium.
webdriver
.support.uiimport
WebDriver
Waitfromselenium.
webdriver
.support
tellw0.0
·
2023-11-01 06:02
b站
爬虫
Python网络爬虫---chrome driver爬取微博(教你十分钟几十行代码利用虚拟浏览爬取财宝宝微博长文)
1.ChromeDriver简介
WebDriver
是一个开源工具,用于在许多浏览器上自动测试webapps。它提供了导航到网页,用户输入,JavaScript执行等功能。
阿力阿哩哩
·
2023-11-01 02:21
2018-09-10
启动浏览器1.设置驱动环境变量,设置是哪一个浏览器驱动,驱动地址2.启动浏览器用driver存起来System.setProperty("
webdriver
.chrome.driver",“浏览器路径”
似如锦
·
2023-11-01 02:06
Python + selenium爬取B站用户信息(iP池+pymsql存储)
importbs4importjsonimporttimeimportpymysqlimportrequestsfrombs4importBeautifulSoupfromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionsdefgetPage
Behersve
·
2023-10-31 16:58
Python爬虫
python
pymysql
selenium
代理IP池
爬虫
03 Selenium获取Cookie
手动进行登录3登录完成后提取Cookie4将数据进行json的序列化,转换成文本进行存储5将字符串文本形式的Cookie数据存储到txt文件中6关闭浏览器1准备工作fromseleniumimport
webdriver
driver
每日随笔
·
2023-10-31 14:08
Python
selenium
测试工具
selenium无法打开火狐浏览器问题解决
测试代码fromseleniumimport
webdriver
driver=
webdriver
.Firefox()driver.get('http://www.baidu
BuFFERer
·
2023-10-31 05:03
python+pycharm+selenium,并且最后发邮件提醒成功
基础上进行指导的准备工作每个人的Google版本不一定相同,在浏览器地址栏输入chrome://version查看自己的版本,必须保证前三个数字(86.0.4240)相同下载浏览器的对应版本驱动:ChromeDriver-
WebDriver
forChrome-Downloads
放氮气的蜗牛
·
2023-10-31 05:04
python入门
python
selenium
selenium自动化之iframe弹窗操作实例
以登录腾讯课堂为例介绍iframe弹窗的操作#-*-coding:utf-8-*-importtimefromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.support.waitimport
WebDriver
Waitfromselenium.
webdriver
.supportimportexpected_conditions
~远在太平洋~
·
2023-10-31 00:10
selenium自动化
iframe弹窗操作
python selenium 处理弹窗_Python+selenium自动化之EC模块之div弹窗
有时候定位不到就可以结合EC、
WebDriver
Wait设置等待,等到元素出现做出相应的操作。实
weixin_39915210
·
2023-10-31 00:09
python
selenium
处理弹窗
selenium自动化confirm弹框解决方案
弹框主要有以下:alert弹框confirm弹框,alert弹框加了取消按钮prompt弹框,alert弹框加了确认内容今天主要解决confirm弹框,弹框方法一options=
webdriver
.IeOptions
Mimo0717
·
2023-10-31 00:39
selenium
python自动化
selenium
自动化
Selenium基础 — 浏览器弹窗操作
1、浏览器自带弹窗操作说明:
webdriver
中处理JavaScript所生成的alert、confirm以及prompt弹窗是很简单的。
测试-八戒
·
2023-10-31 00:07
selenium
selenium
selenium切换到alert弹窗处理
varaa=document.getElementById("only")aa.onclick=function(){demo();}下面代码切换处理alert弹窗fromseleniumimport
webdriver
fromselenium.
webdriver
.support.waitimp
夜莺_Cody
·
2023-10-31 00:07
python自动化
web自动化
selenium
selenium
web自动化
jenkins、ant、selenium、testng搭建自动化测试框架
如果在你的理解中自动化测试就是在eclipse里面讲
webdriver
的包引入,然后写一些测试脚本,这就是你所说的自动化测试,其实这个还不能算是真正的自动化测试,你见过每次需要运行的时候还需要打开eclipse
程序员江念
·
2023-10-30 19:39
软件测试
自动化测试
技术分享
jenkins
selenium
servlet
selenium模块
有窗口fromseleniumimport
webdriver
importtimebrower=
webdriver
.Chrome()brower.maximize_window()#窗口最大化brower.get
项目实施整理
·
2023-10-30 12:02
Python实现短信循环压力测试教程
一、安装依赖库在使用短信循环压力测试之前,需要先安装需要的依赖库——selenium和
webdriver
。
Miya(QQ3088716563)
·
2023-10-30 11:16
python
压力测试
开发语言
大数据
API接口
爬虫
WebElement定位一组对象
webdriver
可以很方便的使用find_element方法来定位某个特定的对象,WebElement接口同样提供了定位一组元素的方法find_elements定义一组对象一般用于以下场景:(1)批量操作对象
eosclover
·
2023-10-30 10:23
Python实现短信循环压力测试教程
一、安装依赖库在使用短信循环压力测试之前,需要先安装需要的依赖库——selenium和
webdriver
。
vx_15083607332
·
2023-10-30 09:56
python
压力测试
开发语言
python+selenium 实现验证码由base64转为jpg/png格式,并识别验证码
#base64转jpgimportbase64fromseleniumimport
webdriver
fromselenium.
webdriver
.co
bug四面八方来
·
2023-10-30 07:17
软件测试
python
selenium
爬虫
Python+selenium+360浏览器实现自动测试
importtimefromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.serviceimportServicefromselenium.
玩玩代码而已
·
2023-10-30 07:46
selenium
python
xpath
chrome
python自动化测试(六):唯品会商品搜索-练习
点击搜索按钮2.3选择品牌2.4选择主款2.5适用性别2.6选择尺码2.7选择商品:(通过css的属性去匹配)2.8点击配送地址选项框一、配置代码#coding=utf-8fromseleniumimport
webdriver
fromselenium.
webdriver
.support.selectimportSelectfromselenium
长风沛雨
·
2023-10-30 05:08
python
开发语言
Python selenium交互
importtimefromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportBy
java1234_小锋
·
2023-10-29 21:20
Python
python
selenium
爬虫
Python爬虫
Selenium与Cypress,一场关于
WebDriver
的革命
SeleniumSelenium
WebDriver
是我们都知道和喜爱的开源自动化工具。随着历史从IDE的卑
ThinkerLing
·
2023-10-29 19:31
Web自动化-浏览器驱动chromedriver安装方法
1.python中安装好selenium包pipinstallselenium2.根据以下驱动对照表下载Chrome对驱动点击下载chrome的
webdriver
:http://chromedriver.storage.googleapis.com
疏影洛桑
·
2023-10-29 08:52
下拉框的选择 python+非select
非select标签的下拉框步骤:1)点击展开下拉框2)选择下拉框选项3)在某个空白处点击一下下拉框列表合起来操作非select下拉框选择某个选项1、需要首先定位下拉框这个元素并点击展开
WebDriver
Wait
@chameleon
·
2023-10-29 07:50
自动化测试
python
开发语言
后端
python-selenium-下拉框的处理
看到了这样的:就是下拉框,可以把他包装为一个下拉了列表使用"""包装为下拉列表需要的包"""fromselenium.
webdriver
.support.selectimportSelect一般为:#遇下拉框
菜鸟-01
·
2023-10-29 07:16
selenium
测试工具
测试八股文-Selenium
Selenium由三个组件组成:SeleniumIDE、Selenium
WebDriver
和SeleniumG
冰点契约丶
·
2023-10-29 06:05
面试题
selenium
java
python
自动化测试
selenium无头浏览器
无头浏览器,也是通过selenium操作浏览器,但是浏览器不弹出来的意思需要用到这个:fromselenium.
webdriver
.chrome.optionsimportOptions #导入无头浏览器的包
wwanxinghao
·
2023-10-29 03:18
python
selenium
python
chrome
Selenium自动化测试的配置(Python版)
目录一.初识Selenium1.概念2.使用selenium为什么需要
webdriver
3.
webdriver
在selenium中的作用示意图二.环境配置1.下载python2.在cmd中通过指令下载一些包
筑梦小子
·
2023-10-28 15:03
python
测开(自动化测试selenium(
WebDriver
API))
一个简单的Web自动化演示百度一下迪丽热巴。这样的一个用户行为,会涉及的那些操作呢?1、打开浏览器2、在输入框里面输入关键词【迪丽热巴】PS:当然这里可能还涉及到一个操作,回车执行操作。或者说:点击“百度一下”按钮。只是说现在的浏览器将执行操作设置成自动执行了。3、在搜索完成之后,关闭浏览器操作的大致流程就是这样的,那么自动化脚本该如何去写呢?1、打开我们的IDEA编译器,新建一个Maven项目2
lambo mercy
·
2023-10-28 15:54
软件测试
selenium
测试工具
自动化测试——Selenium Java 测试方案
自动化测试方案自动化测试框架图测试用例使用单元测试框架测试业务使用Page-Object设计模式测试数据使用数据驱动的方式进行传入flat-filecsvxmltxt...DataBaseMySQLSQLServerMongoDB底层封装
WebDriver
丁鱼教育
·
2023-10-28 15:52
Java
自动化测试
java
app爬虫appium获取借贷宝,无忧等等(配置文件)
#主配置篇#appium分装的函数1模块importselenium.
webdriver
.support.u
风云路上想改名
·
2023-10-28 08:53
笔记
app爬虫
appium+模拟器
appium相关操作
python
多开
python HTML页面转jpg图片,可实现长截图保存
#coding=utf-8fromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionsimportosimporttimestart
牛儿还在山坡上吃草
·
2023-10-28 04:12
python
python
python --html转图片;centos装浏览器;
demoimportosimporttimefromPILimportImagefromloguruimportloggerfromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByclassHtmlToImg
像风一样的男人@
·
2023-10-28 04:11
笔记
1024程序员节
Alphafold批量下载蛋白的pdb文件
下面上代码正文:importosfromseleniumimport
webdriver
fromselenium.
webdriver
.common.byim
qq_37440906
·
2023-10-28 03:54
python
经验分享
笔记
自动化测试:Selenium自动化环境搭建
本章内容●Selenium的
WebDriver
工作原理●Selenium+Python自动化测试环境搭建●
WebDriver
初步使用●浏览器操作模拟一、
WebDriver
工作原理
WebDriver
提供了各种语言环境的
川石信息
·
2023-10-28 01:16
Web自动化测试进阶 —— Selenium模拟鼠标操作
ActionChains类中鼠标操作常用方法:首先导入ActionChains类:fromselenium.
webdriver
.common.action_chainsimportActionChainscontext_click
自动化测试 老司机
·
2023-10-27 21:35
测试工程师
自动化测试
软件测试
前端
selenium
软件测试
自动化测试
单元测试
淘宝抢券python代码,能够对实时抢券和清空购物车。
/usr/bin/envpython#-*-coding:utf-8-*-#2020/11/09#淘宝秒杀脚本,扫码登录版fromseleniumimport
webdriver
importdatetimeimporttimedeflogin
仰望星空007
·
2023-10-27 20:02
python
python
selenium
selenium中的三种等待方式以及显示等待和隐式等待区别
隐式等待、sleep强制等待1、显示等待(有条件)程序提前指定等待条件和等待时间,在查找元素时,判断规定时间内是否满足条件,满足则继续执行,不满足或超出时间则抛出异常fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromseleni
blog-xiaoh
·
2023-10-27 19:26
#
UI自动化测试
selenium
python
chrome
WebDriver
识别反爬虫的原理和破解方法~
作者|志斌来源|python笔记有时候我们在爬取动态网页的时候,会借助渲染工具来进行爬取,这个“借助”实际上就是通过使用相应的浏览器驱动(即
WebDriver
)向浏览器发出命令。
AI科技大本营
·
2023-10-27 15:15
js
python
编程语言
selenium
java
jenkins、ant、selenium、testng搭建自动化测试框架
如果在你的理解中自动化测试就是在eclipse里面讲
webdriver
的包引入,然后写一些测试脚本,这就是你所说的自动化测试,其实这个还不能算是真正的自动化测试,你见过每次需要运行的时候还需要打开eclipse
程序员木江
·
2023-10-27 10:20
自动化测试
接口自动化测试
jenkins
selenium
运维
selenium中三种等待方式:sleep,implicitly_wait,
WebDriver
Wait
https://blog.csdn.net/c_xiazai12345/article/details/120641122判断元素16种方法expected_conditions:https://blog.csdn.net/weixin_42575593/article/details/83304005Python中的selenium库做爬虫一些关于元素找不到的问题:https://blog.cs
Chiandra_Leong
·
2023-10-27 10:13
selenium
web自动化-三种等待/三种切换
driver.implicitly_wait(30):设置最长的等待时间,在这个时间内加载完成,则执行下一步操作,整个driver的会话期内,设置一次即可,全局可用,应用度上不灵活fromseleniumimport
webdriver
driver
萌萌哒小宝宝
·
2023-10-27 09:32
web自动化
软件测试
selenium
python
Python+selenium自动化之等待
selenium中提供常用的三种:强制等待time.sleep()、隐性等待implicitly_wait()、显性等待
WebDriver
Wait()。
ZYY_963872523
·
2023-10-27 09:58
python
selenium
自动化
Python的web自动化学习(三)Selenium的显性、隐形等待
引言:
WebDriver
的显性等待和隐形等待是用于在测试过程中等待元素加载或操作完成的两种等待方式。
经历一个春
·
2023-10-27 09:26
python
自动化
学习
上一页
19
20
21
22
23
24
25
26
下一页
按字母分类:
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
其他