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
python3自动化实践10之鼠标操作
1.鼠标单击,双击和右键操作fromseleniumimport
webdriver
fromselenium.
webdriver
.common.action_chainsimportActionChainsfromtimeimportsleepdriver
hellen_ll
·
2020-07-11 12:54
测试技术
python
python3自动化实践17之表单切换
方法使用的iframe.html页面放在E:\demo\iframe目录下,源代码如下:Thelinkbaiduiframe>>对应的selenium页面定位元素代码如下:fromseleniumimport
webdriver
fromtime
hellen_ll
·
2020-07-11 12:54
测试技术
python
python3自动化实践6之窗口大小控制
1,设置浏览器窗口大小使用set_window_size方法,具体使用如下:fromseleniumimport
webdriver
fromtimeimportsleepdriver=
webdriver
.Firefox
hellen_ll
·
2020-07-11 12:54
测试技术
python
selenium报
WebDriver
Exception错误
众所周知,Python是爬虫的利器,最近在做一爬虫,爬取网易云音乐热门歌曲的热门评论,发现网站是js的,所以想用selenium模拟浏览器渲染js后再获取相应的内容fromseleniumimport
webdriver
browser
Tab609
·
2020-07-11 12:49
selenium
爬虫
selenium
webdriver
读取excel进行数据驱动测试
最近做自动化需要从文件读取数据做参数化,网上发现一个不错的解决方案。准备:新建一个excel文件,文件名为测试类名,sheet名为测试方法名excel第一行为标题,从第二行开始为测试数据buildpath:jxl.jarcode:1importjava.io.FileInputStream;2importjava.io.InputStream;3importjava.util.HashMap;4i
流柯@
·
2020-07-11 11:58
解决“chrome正受到自动测试软件的控制”信息栏显示问题(转)
在使用Selenium
WebDriver
启动谷歌浏览器Chrome时,在新启动的浏览器地址栏下方经常会显示一行提示信息:“chrome正受到自动测试软件的控制”,英文的就是“'Chromeisbeingcontrolledbyautomatedtestsoftware
你若安好我便天晴
·
2020-07-11 11:18
软件测试
selenium+
webdriver
+python 中警告框的处理方法
在自动化测试过程中,经常会遇到弹出警告框的情况,如图所示:在
WebDriver
中处理JavaScript所生成的alert、confirm以及prompt是很简单的。
liujingqiu
·
2020-07-11 11:55
Selenium
Python
Selenium+Python 鼠标事件
fromselenium.
webdriver
.common.action_chainsimportActionChains测试案例:1)
liujingqiu
·
2020-07-11 11:24
Selenium
用python操作浏览器的三种方式
第一种:selenium导入浏览器驱动,用get方法打开浏览器,例如:importtimefromseleniumimport
webdriver
defmac():driver=
webdriver
.Firefox
liu_xzhen
·
2020-07-11 11:35
python
自动化
Selenium
Webdriver
环境搭建
环境准备Selenium环境需要的软件:jdk1.7,FF46.0,selenium-java-2.52Java和selenium版本不一样会出现兼容问题Java项目结构以及包引入参照http://www.cnblogs.com/hanlong/p/5258706.html注意的一点就是,除了将下面的文件copy到工程之外,还需要另外将jar包引入工程引入步骤是:添加buildpath,项目目录右
lancyblack
·
2020-07-11 10:34
Selenium+
WebDriver
各浏览器驱动下载与使用
Selenium+python》》》
WebDriver
驱动下载与使用Firefox(火狐)浏览器驱动Chrome(google)浏览器驱动IE浏览器驱动MicrosoftEdge(EdgeHTML)浏览器驱动
Aa三吉
·
2020-07-11 10:12
Python+Selenium
Python实战---抓取淘宝美食
系统:win10,Spyder3,MySQL话不多说,先上代码:#-*-coding:utf-8-*-fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.support.uiimport
WebDriver
Waitfromselenium.
webdriver
.support
keneyr
·
2020-07-11 10:10
python
一步步教你如何实现自动化测试数据驱动
本章演示如何实现简单的数据驱动,后续会更新java+selenium+testNG读取csv实现数据驱动1、创建JavaProject创建package和class名字自取,project如下2、环境配置publicstatic
WebDriver
driver
kekeTester
·
2020-07-11 09:31
数据驱动
用selenium进行网易云音乐进行评论爬取
/usr/bin/python#-*-coding:-*-importtimefromseleniumimport
webdriver
importrecomment_list=[]#定义评论列表文件browser
头发越少码力越强
·
2020-07-11 09:21
python
十四、下拉框选择
转载于:http://www.testclass.net/selenium_python/select有时我们会碰到下拉框,
WebDriver
提供了Select类来处理下拉框。
烟-锁-池-塘-柳
·
2020-07-11 09:24
selenium
Python-Selenium2做Web自动化测试(10)-浏览器多窗口处理、alert/confirm/prompt 处理
即Handle继续以百度为例:#coding=utf-8fromseleniumimport
webdriver
importtimedriver=
webdriver
.Firefox()dr
zhichengMLE
·
2020-07-11 09:53
Web自动化测试
软件测试
企查查企业详情爬虫(自动模拟登录企业详情页法律风险爬取)
由于爬取数据涉及到网站会员,没有会员有需求的别多虑,找老板冲啊读取已有json文件爬取对应公司的企业数据,保存工具:Chrome点击下载chrome的
webdriver
:http://chromedriver.storage.googleapis.com
我是没有感情的杀手
·
2020-07-11 08:14
selenium之常用模块函数总结
WebDriver
提供的八种定位方法:find_element_by_id()find_element_by_name()find_element_by_class_name()find_element_by_tag_name
没有蛀牙lm
·
2020-07-11 08:32
selenium
python+selenium之执行js脚本触发一个alert弹出框以及关闭alert弹框
js脚本触发一个alert弹出框以及关闭alert弹框使用python+selenium执行js脚本触发一个alert弹出框以及关闭alert弹框importtimefromseleniumimport
webdriver
driver
hss_
·
2020-07-11 07:44
python
Webdriver
学习笔记(二)浏览器的基本操作
1.
webdriver
对浏览器的支持1.1HtmlUnitDriver优点:打开和运行速度都很快,而且不会实际打开浏览器。缺点:对JS支持不好,而且经常出现找不到页面的元素。
米阳MeYoung
·
2020-07-11 07:23
selenium
2.0
Webdriver
学习笔记(六)多窗口的切换处理
在平时测试时,经常会遇到弹出一个窗口,或者新开一个页面,并且得在新弹出或者新开的页面上做测试操作。这就需要我们在不同的多个窗口中不停的做切换操作,这里所说切换其实就是把浏览器控制权交给对应的窗口或者页面。例子:我们直接以百度首页,点击“注册”为例子。当我们点击“注册”后会打开新页面,如果不把控制权交给新开的页面,将无法操作新页面。importorg.junit.Test;importorg.ope
米阳MeYoung
·
2020-07-11 07:23
selenium
2.0
基于python的-PIL定位截图
#-*-coding:utf-8-*-fromseleniumimport
webdriver
fromselenium.
webdriver
.support.uiimport
WebDriver
Wait#安装
hs947463167
·
2020-07-11 07:50
selenium + python实现截图并且保存图片的方法
webdriver
的截图功能十分强悍,无论页面多长,
webdriver
都能比较完美的截到完整的页面。
何烨坪Echo
·
2020-07-11 07:24
selenium
python
unittest
自动化测试 - Appium + Python史上最全最简环境搭建步骤(转载)
-一,为什么是Appium借一张图:1.1Appium优点l开源l跨架构:NativeApp、HybirdApp、WebAppl跨设备:Android、iOS、FirefoxOSl不依赖源码l使用任何
WebDriver
hey_melody
·
2020-07-11 07:52
appium环境搭建
使用selenium爬取网易云音乐
importrequestsfromseleniumimport
webdriver
importreimportjsonfromqueueimportQueueimportthreadingfromselenium.
webdriver
.chrome.optionsimportOptionsclassMusic
hanjinjian
·
2020-07-11 07:09
Python selenium 操作浏览器时元素不存在和display:none时的操作
pantomjs,需要安装指定版本的seleniumpipinstallselenium==2.48.02、看代码,注意我这里是一个真实项目用到的,实际过程中需要自己先定位元素fromseleniumimport
webdriver
importtime
haeasringnar
·
2020-07-11 07:12
Python
Selenium数据驱动之EXCEL
使用Selenium-
Webdriver
自动化测试163邮箱登录,登录的数据来自于EXCEL表格,即使用EXCEL表格进行数据驱动表格中第一列的数据为帐号,第二列的数据为密码,如下:sz001testing002sz002testing003sz003testing004sz004testing005sz005testing006sz006testing007sz007testing008sz00
andyguo
·
2020-07-11 07:56
selenium
提取跳转链接
#-*-coding:utf-8-*-fromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptionsfromtimeimportsleepfromurllib.parseimporturlparse
珠穆拉玛峰
·
2020-07-11 07:00
appium安装
官网的介绍说是它实现一套适用于移动端的
WebDriver
协议,所以使用Appium时用的还是依赖于Selenium,和Web自动化测试的主要区别就在Driver不一样。
白清羽
·
2020-07-11 06:37
WebDriver
+Pytest自动化框架SeleniumBase介绍
简介:SeleniumBase是一个基于Selenium-
WebDriver
和Pytest的Web自动化测试框架gitbub地址:https://github.com/seleniumbase/SeleniumBase
灵枢_
·
2020-07-11 06:01
python
自动化测试
自动化测试
Selenium操作实现鼠标右键保存图片
使用selenium模拟鼠标和键盘操作--“将鼠标放置图像上方,右键并选择图像另存为选项”,然后键盘按V就可以保存了,代码如下:fromselenium.
webdriver
.common.action_chainsimportActionChainsfromselenium.
webdriver
.common.keysimportKeysaction
freesigefei
·
2020-07-11 06:04
Selenium
python selenium
webdriver
手册文档
pythonselenium
webdriver
手册文档1.安装与配置pipinstallselenium基本使用selenium都是为了动态加载网页内容用于爬虫,所以一般也会用到phantomjsmac
南通SEO
·
2020-07-11 06:37
文档手册
selenium的8种元素定位-方式
()从上面定位到的搜索框属性中,有个id="kw"的属性,我们可以通过这个id定位到这个搜索框代码:#coding=utf-8fromtimeimportsleepfromseleniumimport
webdriver
ezreal_tao
·
2020-07-11 05:42
python
自动化测试
selenium
python+appium+unittest+HtmlTestRunner实现Android移动端自动化流程
importosimportsysimporttimeimportunittestfromHTMLTestRunnerimportHTMLTestRunnerfromunittestimportrunnerfromappiumimport
webdriver
ezreal_tao
·
2020-07-11 05:42
python
自动化测试
appium
selenium-
webdriver
关于测试新打开页面报错解决办法
先看一下,从seleniumIDE导出的测试代码packagecom.test;importstaticorg.junit.Assert.fail;importjava.util.concurrent.TimeUnit;importorg.junit.After;importorg.junit.Before;importorg.junit.Test;importorg.openqa.seleniu
Rindy_RR
·
2020-07-11 05:37
selenium测试
python+selenium+BeautifulSoup 无法用firefox加载网页,自动关闭浏览器后报错
最近在玩一个Python爬虫的demo,直奔主题:我想用python+selenium+BeautifulSoup获取js动态加载的数据时报错:selenium.common.exceptions.
WebDriver
Exception
轮子搬运工
·
2020-07-11 05:49
java
Python
selenium
打开firefox
不加载的问题
chrome 下载文件
#-*-coding:utf-8-*-fromseleniumimport
webdriver
fromtimeimportsleep#定义配置对象options=
webdriver
.ChromeOptions
test_豆
·
2020-07-11 05:42
ui自动化-selenium
WebDriver
:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on .
今天尝试最新的
webDriver
与fireFox搭配:运行代码时出现如下的问题,但是浏览器却可以打开:org.openqa.selenium.firefox.NotConnectedException:
djfiew7234
·
2020-07-11 05:14
Python3+Selenium2完整的自动化测试实现之旅(三):Selenium-
webdriver
提供的元素定位方法...
本篇以实例介绍selenium下的
webdriver
模块提供的定位页面元素(也可以称为对象)的方法和使用技巧,在此注意:在做WEB自动化测试前,需要对前端相关的技术有所了解,如HTML、XML、Xpath
dieshuang3318
·
2020-07-11 05:25
Python3+Selenium2完整的自动化测试实现之旅(五):自动化测试框架、Python面向对象以及POM设计模型简介...
前言之前的系列博客,陆续学习整理了自动化测试环境的搭建、IE和Chrome浏览器驱动的配置、selenium-
webdriver
模块封装的元素定位以及控制浏览器、处理警示框、鼠标键盘等方法的使用,这些内容还需要后续多加练习掌握
dieshuang3318
·
2020-07-11 05:52
selenium3 浏览器驱动下载及验证
各浏览器下载地址:Firefox浏览器驱动:geckodriverChrome浏览器驱动:chromedriverIE浏览器驱动:IEDriverServerEdge浏览器驱动:Microsoft
WebDriver
Opera
dibinjin5020
·
2020-07-11 05:15
细数自动化测试中经常用到的功能类
1、
WebDriver
处理一些弹窗importjava.util.Set;importorg.openqa.selenium.Alert;importorg.openqa.selenium.By;importorg.openqa.selenium.NoAlertPresentExceptio
deyichao3781
·
2020-07-11 05:00
iframe切换
脚本如下:#coding:utf-8fromseleniumimport
webdriver
fromtimeimportsleepdriver=
webdriver
.Chrome()driver.get("
Mrdz
·
2020-07-11 05:23
python+selenium
浏览器滚动条控制
1.常用方法#coding:utf-8fromseleniumimport
webdriver
driver=
webdriver
.Chrome()driver.get('http://www.163.com
Mrdz
·
2020-07-11 05:23
python+selenium
Selenium(九)测试用例数据分离与从文件导入数据
2.代码和用户数据分离:3.数据设计--以字典的形式fromseleniumimport
webdriver
importtimefromselenium.
webdriver
.common.action_chainsimportActionChai
dejiebi3051
·
2020-07-11 04:31
Element is not currently interactable and may not be manipulated
Elementisnotcurrentlyinteractableandmaynotbemanipulated:元素当前不可交互,并且可能无法操作.解决方法:调用该方法,智能等待元素加载出来publicvoidwaitForElementToLoad(inttimeOut,Byby){new
WebDriver
Wait
dayo9317
·
2020-07-11 04:38
在爬虫框架scrapy中使用selenium
1.wangyi.pyimportscrapyfromseleniumimport
webdriver
'''在scrapy中使用selenium的编码流程:1.在spider的构造方法中创建一个浏览器对象
cui_yonghua
·
2020-07-11 04:05
爬虫总结和详解
selenium web automation test
importorg.openqa.selenium.By;importorg.openqa.selenium.JavascriptExecutor;importorg.openqa.selenium.
WebDriver
chuohuhui4177
·
2020-07-11 04:12
Selenium+Firefox:录制回放
示例最近想使用selenium的录制回放功能来完成一些复杂的web自动化功能,所以就安装了Firefox:浏览器selenium功能这里需要额外支持的工具:1、Firefox安装插件插件2、安装Firefox的
WebDriver
沈宥
·
2020-07-11 04:31
6-selenium ChromeDriver 中的 options 参数设置
fromseleniumimport
webdriver
chrome_options=
webdriver
.ChromeOptions()#设置谷歌浏览器的一些选项chrome_options.add_argument
chuiai8582
·
2020-07-11 03:31
上一页
122
123
124
125
126
127
128
129
下一页
按字母分类:
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
其他