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 Firefox 日志重定向
fromseleniumimport
webdriver
fromutils.user_agentimportGetHeadersfromselenium.
webdriver
.common.proxyimport
ivy_还在啊
·
2020-08-21 06:38
python
自动化测试基础篇--Selenium中数据参数化之TXT
/usr/bin/envpython2#-*-coding:utf-8-*-3#@File:txt.py4#@Software:PyCharm5fromseleniumimport
webdriver
6importtime78url
weixin_30732825
·
2020-08-21 06:49
python
java
QQ空间爬虫--获取好友信息
(1)获取Cookie两种方式:第一种:通过chromeF12慢慢找获取第二种:selenium模拟登陆获取1fromseleniumimport
webdriver
2fromtimeimportsleep3importjson45QQ_num
weixin_30718391
·
2020-08-21 06:18
Selenium select-下拉列表处理
针对select标签的下拉列表,Selenium提供了Select类进行操作:fromselenium.
webdriver
.support.uiimportSelectSelect类常用方法:序号方法/
Leofighting
·
2020-08-21 04:15
selenium
python
自动化测试
测试
Selenium alert 弹窗处理
alert弹窗,Selenium提供如下方法:序号方法/属性描述1accept()接受2dismiss()取消3text获取显示的文本4send_keys()输入内容对应处理方式:alert(警告信息):
WebDriver
.switch_to.alert.accept
Leofighting
·
2020-08-21 04:10
selenium
python
测试
自动化测试
Selenium 窗口切换
使用Selenium进行Web自动化测试,如果弹出新窗口时,没有对窗口进行切换,那么,
WebDriver
对象的焦点对应的,依然是旧窗口,后续的自动化操作,将继续在旧窗口中进行。
Leofighting
·
2020-08-21 04:38
selenium
测试
自动化测试
python
Selenium API-
WebDriver
方法
关于常用的
WebDriver
方法,主要是回退、前进、刷新关闭浏览器等序号方法/属性描述1driver.back()浏览器页面后退2driver.forword()浏览器页面前进3driver.refresh
Leofighting
·
2020-08-21 04:56
selenium
测试
自动化测试
转行
Selenium API-
WebDriver
属性
故此,有特定的
WebDriver
属性来完成这一类的操作。
Leofighting
·
2020-08-21 04:54
selenium
测试
自动化测试
转行
selenium 定位方式2
1.1find_element_by_link_text应用#find_element_by_link_text的应用1:点击“hao123”,跳转值hao123页面fromseleniumimport
webdriver
Leofighting
·
2020-08-21 04:37
selenium
自动化测试
测试
转行
python自动爬取百度搜索结果
python版本:3.8pipinstallBeautifulSoup4pipinstallseleniumpipinstallrequestsfromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeysfrombs4importBeautifulSoupimporttimeimportrequests
PokerLi
·
2020-08-21 04:09
selenium
python爬虫
python3.x
Cypress与TestCafe WebUI端到端测试框架简介
近期接触了Cypress和TestCafe,两个测试框架都基于Node.js,都不再使用Selenium+
WebDriver
,而且开箱即用,非常轻量级,就冲着不再使用
WebDriver
这一点,极大地勾起了我的好奇心
软测小生
·
2020-08-21 03:59
test
软件测试
前端
测试自动化
测试工具
Selenium API-鼠标与键盘事件
鼠标事件Selenium中的鼠标事件被封装在ActionChains类中,导入方式:fromselenium.
webdriver
.common.action_chainsimportActionChains
Leofighting
·
2020-08-21 03:33
selenium
自动化测试
测试
转行
Python+Selemium自动化公共类封装---基础一
#-*-encoding:utf-8-*-importdatetimefromselenium.
webdriver
.common.action_chainsimportActionChainsfromselenium.
webdriver
.support.selectimportSelectfromtimeimportsleep
qq_35653145
·
2020-08-21 01:57
python自动化测试
python selenium 抓包代码封装
#导入selenium模块中的web引擎fromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionsfrompyqueryimportPyQueryaspq
web前端的博客
·
2020-08-21 01:02
python
puppeteer 登陆处理
遇到的问题有2个:navigater.
webdriver
网上教程多是使用Object.defineProperty(navigator,'
webdriver
',{get:()=>undefined,})
papermoon
·
2020-08-21 00:17
javascript
node.js
puppeteer
puppeteer 登陆处理
遇到的问题有2个:navigater.
webdriver
网上教程多是使用Object.defineProperty(navigator,'
webdriver
',{get:()=>undefined,})
papermoon
·
2020-08-21 00:17
javascript
node.js
puppeteer
selenium+Python 将登录模块化
公共模块化:(登录)login.pyfromseleniumimport
webdriver
fromtimeimportsleepclasslogin():defuser_login(self,driver
diaozhi7038
·
2020-08-20 23:45
python爬虫selenium模块实现登陆(浅)
selenium是一个非常好的模块使用selenium首先要导入模块fromseleniumimport
webdriver
要拿
webdriver
实现功能需要实例化一个driverdriver=
webdriver
.Chrome
china_python
·
2020-08-20 23:06
python爬虫
python3+selenium3登录封装与调用(把登陆做成公共模块)
方便参考classLoginfor():#封装def__init__(self,driver):self.driver=driver#定义登陆函数,将登陆作为公共调用的模块,进行数据传递,因此不需要导入
webdriver
过久促人
·
2020-08-20 21:55
软件测试
WebDriver
学习笔记(八)windows弹窗(警告弹窗)处理
测试时会遇到三种警告窗口:alertconfirm以及prompt。三种警告窗口的处理都很容易。先新建个测试页面,html代码如下:alert.htmlAlertfunctiondisp_prompt(){varname=prompt("Pleaseenteryourname","")if(name!=null&&name!=""){document.write("Hello"+name+"!")
米阳MeYoung
·
2020-08-20 21:52
selenium
2.0
web自动化学习进展
可以进行细致的功能测试使用当当网进行的本地测试,功能:物品加入购物车,检测是否成功,下一页是否能使用,选择页码查询功能是否有用代码如下:importseleniumfromseleniumimport
webdriver
fromsele
xiaoxiaoxiao_1
·
2020-08-20 20:56
ui自动化
ui自动化坑人
转行做接口自动化吧!
selenium爬虫时常常会遇到stale element reference: element is not attached to the page document加了显式等待感觉没什么用
有时候就两份甚至直接elementisnotattachedtothepagedocument,加了显式等待感觉好像没啥用,(另外是不是if中套test会好一点)求帮助谢谢fromseleniumimport
webdriver
importpandasaspdimportnumpyasnpfromselenium.
webdriver
.co
weixin_49101060
·
2020-08-20 20:14
爬虫框架WebMagic源码分析之Selenium
首先是
WebDriver
Pool用来管理
WebDriver
池:importjava.util.ArrayList;importjava.util.concurrent.BlockingDeque;importjava.util.concurrent.Lin
xbynet
·
2020-08-20 20:45
java
webmagic
网页爬虫
爬虫框架WebMagic源码分析之Selenium
首先是
WebDriver
Pool用来管理
WebDriver
池:importjava.util.ArrayList;importjava.util.concurrent.BlockingDeque;importjava.util.concurrent.Lin
xbynet
·
2020-08-20 20:44
java
webmagic
网页爬虫
Python使用Selenium+ChromeDriver+BeautifulSoup实现淘宝产品详情页数据爬取
下载地址:http://npm.taobao.org/mirrors/chromedriver/二、导入资源包fromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionsfromsele
Energy-郑能量
·
2020-08-20 20:34
Python
使用
webdriver
扒取网站小说(二)-----进阶篇(分层数据驱动)
1.思路构想上一节主要通过
webdriver
写了一个demo来写了拔取小说的功能,虽然功能实现了,但是每次拔取不同的小说都要改很多数据,更改起来有很多不方便的地方,所以我们来吧数据层单独放在一起,并加入了日志等功能
weixin_30673611
·
2020-08-20 19:25
python
爬虫
测试
selenium2.0报错:stale element reference: element is not attached to the page document的解决办法
使用selenium
webdriver
编写自动化脚本时,遇到异常报错为:selenium.common.exceptions.StaleElementReferenceException:Message
akiyama akira
·
2020-08-20 18:05
CentOS7 安装Selenium+chrome+chromedriver
在无界面的CentOS7上安装Selenium+Chrome,并使用facebook的php-
webdriver
测试系统环境OperatingSystem:CentOSLinux7(Core)Kernel
疯流人物
·
2020-08-20 18:11
linux
Chromedrive下载与安装
版本可参照SeleniumChrome版本与chromedriver兼容版本对照表下载地址各版本下载地址将下载好的文件解压在python目录下完成后可用以下代码进行测试fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromselenium.we
一星一辰
·
2020-08-20 17:34
Python爬虫
Appium自动化过程中遇到的坑
1.滑动屏幕的坑(python)导入appium和selenium(如图①)运行的时候,一直报错:AttributeError:'
WebDriver
'objecthasnoattribute'swipe
lykion_881210
·
2020-08-20 16:16
执行 Selenium
WebDriver
测试脚本抛出 StaleElementReferenceException
//SeleniumClient:selenium-java-2.34.0在执行脚本时,有时候引用一些元素对象会抛出如下异常org.openqa.selenium.StaleElementReferenceException:staleelementreference:elementisnotattachedtothepagedocument按字面表达的意思大概是,所引用的元素已过时,不再依附于当
lihaiping_
·
2020-08-20 16:37
Web
selenium模拟鼠标键盘定位输入值的35例子(接上一篇第30例导入win32api库)
--coding:utf-8--fromseleniumimport
webdriver
importunittestimporttimefromselenium.
webdriver
importActionChainsfromselenium.
webdriver
.common.keysimportKeysimporttimeimportwin32clipboardasw
kyaaaa1
·
2020-08-20 16:06
selenium
selenium
options =
webdriver
.ChromeOptions()无弹窗经典python-selenium小练习
--coding:utf-8--fromseleniumimport
webdriver
importunittestimporttimeclassGloryRoad(unittest.TestCase):
kyaaaa1
·
2020-08-20 16:06
selenium
selenium工具入门
selenium工具是thoughtWorks公司推出的开源web自动化测试工具,它是基于javaScript并结合其
WebDriver
来模拟用户的真实操作,它又很好的处理ajax的能力,并且支持多种浏览器
wendy_fly
·
2020-08-20 13:26
测试技术
selenium原理
Selenium2.x集成了Selenium和
WebDriver
的功能。一、SeleniumRC1.SeleniumRC的组成下图所示为Sele
zhouhaifeng
·
2020-08-20 11:47
Java-selenium
webDriver
浏览器命令
webDriver
的所有方法获取命令得到(字符串为arg0):空-此方法在当前的浏览器窗口打开一个新的网页。参数类型为String类型。
c_bulrush
·
2020-08-20 11:48
selenium-Java
selenium
webdriver
或Appium+testng+ant+jenkins的集成方法
点击链接加入QQ群522720170(免费公开课、视频应有尽有):https://jq.qq.com/?_wv=1027&k=5C08ATe自动化测试的运行貌似离不开jenkins,好吧,其实我觉得真心没有必要那么依赖,但是现实如此,我们就庸俗一下吧,这次我们就看看如何整合1、脚本搞定没有问题2、testng、reportng搞定没问题,不要问我怎么弄3、ant搞定(https://ant.apa
测试帮日记
·
2020-08-20 10:40
详解基于Android的Appium+Python自动化脚本编写
1.AppiumAppium是一个开源测试自动化框架,可用于原生,混合和移动Web应用程序测试,它使用
WebDriver
协议驱动iOS,Android和Windows应用程序。
·
2020-08-20 10:08
Selenium的延迟等待
ImplicitWait).1.显式等待显式等待,就是明确的要等到某个元素的出现或者是某个元素的可点击等条件,等不到,就一直等,除非在规定的时间之内都没找到,那么就跳出Exception.如:1new
WebDriver
Wait
雪秀
·
2020-08-20 09:21
webtest
Java+selenium运行报错,可以打开浏览器但无法输入值
org.openqa.selenium.
WebDriver
Exception:unknownerror:callfunctionresultmissing'value'(Sessioninfo:chrome
c_bulrush
·
2020-08-20 09:41
selenium-Java
yum安装google-chrome
最近需要用
webdriver
来写爬虫,在linux下用Firefox的driver启动特别慢,因此需要安装google-chrome,但是呢,下载rpm文件之后总是会有各种依赖问题,因此想要用yum来安装首先添加
weixin_43364556
·
2020-08-20 07:18
linux
selenium原理
Selenium2原理
webdriver
是按照server–client的经典设计模式设计的:server端就是remoteserver,可以是任意的浏览器:我们的脚本启动浏览器后,该浏览器就是remoteserver
月月半半
·
2020-08-20 05:07
selenium起动google浏览器
官网下载对应浏览器的驱动(2)下载相应的版本(3)查询了各种版本都不是很好使用,最后最好的办法就是将chromedriver直接放在工程目录下面3、启动浏览器代码:fromseleniumimport
webdriver
songyatou
·
2020-08-20 04:40
selenium
Selenide启用chrome移动模式
JAVA代码publicclassTestSelenide{//chromedriver路径privatestaticfinalStringCHROME_DRIVER_PATH="d:/
webdriver
s
Ksewen
·
2020-08-20 04:50
利用selenium实现循环访问网页并自动关闭1.0(超简单版)
,但是不知为什么只有当我关闭程序时,os.system()才自动帮我关闭网页,转念一想,很久之前用过selenium来爬取网页,我自己都忘了,后面代码就非常简单了:fromseleniumimport
webdriver
fro
potpof
·
2020-08-20 03:08
python | 读取csv文件
转自虫师https://www.cnblogs.com/fnng/p/6111516.htmlimage.pngfromseleniumimport
webdriver
importunittestimportcsv
Root_123
·
2020-08-20 03:26
selenium 实现用qq邮箱自动发送邮件
selenium实现用qq邮箱自动发送邮件#-*-encoding:utf-8-*-fromseleniumimport
webdriver
classQQmail():def__init__(self):
zw17302560727
·
2020-08-20 02:26
python
selenium
自动发送邮件
selenium中 基本方法定义,封装后直接调用,太方便了
导入timem模块的sleepfromtimeimportsleep#导入selenium里的expected_conditions,selenium包需要自己导入可网上下载fromselenium.
webdriver
.supportimportexpected_conditionsasecfromselenium.
webdriver
.support.waitimport
WebDriver
Wai
土门陈伟霆
·
2020-08-20 02:09
python
selenium
pycharm
selenium_unittest基本框架
fromseleniumimport
webdriver
importunittestimporttime#创建类引入unitest.testcase用例库classBaiDu_test(unittest.TestCase
weixin_30362233
·
2020-08-20 01:13
selenium打开火狐浏览器失败解决办法
chrome需要安装相应浏览器的driver,启动火狐时报错raiseexception_class(message,screen,stacktrace)selenium.common.exceptions.
WebDriver
Exception
勤劳的搬运工
·
2020-08-20 01:32
自动化测试
上一页
88
89
90
91
92
93
94
95
下一页
按字母分类:
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
其他