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
提供了两种类型的等待:显示等待和隐式等待time模块也提供等待:time.sleep(10)强制等待10秒显示等待:显示等待使
Webdriver
等待某个条件成立时继续执行,否则在达到最大时长
Candice_92
·
2020-08-26 13:07
selenium
Java +selenium 启动浏览器
selenium和
webdriver
安装完成后,可使用如下代码检验是否能正常使用:packagetests;importorg.openqa.selenium.
WebDriver
;importorg.openqa.selenium.chrome.ChromeDriver
阿竺
·
2020-08-26 12:30
selenium
自动化测试
Java+selenium+testNG+
webdriver
自动化测试环境搭建
1.下载安装eclipse(安装前需要电脑中已有JDK)下载链接如下:https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2019-06/R/eclipse-inst-win64.exe点击download即可下载完成后,运行Eclipse安装程序,开始安装步骤:点击安装程序,进入下图窗口,选择【EclipseIDEforE
阿竺
·
2020-08-26 12:30
自动化测试
selenium
软件测试基础知识
解决Selenium 调用IEDriverServer打开IE浏览器
无论是selenium2(
WebDriver
)还是selenium2Library,如果想要调用ie浏览器,均需以下步骤。下载IEDriverServer。
a55650892
·
2020-08-26 12:51
selenium自动化测试
python
robot
framework
selenium自动化测试
python
robot
framework
爬虫学习-4
BeautifulSoup爬取腾讯新闻基本步骤:导入库打开浏览器获取页面源代码解析内容#导入库importtimefrombs4importBeautifulSoupfromseleniumimport
webdriver
茶哩
·
2020-08-26 12:41
2.1 案例3:爬取某读书网站
课前说明:本章节请求的url部分用**代替本章节需要掌握的知识点:1、无界面浏览器的使用:driver=r"/home/**/Downloads/chromedriver"opt=
webdriver
.ChromeOptions
YiHong_Li
·
2020-08-26 12:04
一
爬虫基础框架urllib
python爬虫从0到精通
Java+Selenium / org.openqa.selenium.NoAlertPresentException
new
WebDriver
Wait(driver,6).until(ExpectedConditions.alertIsPresent());driver.switchTo().alert().accept
翻滚的西红柿
·
2020-08-26 11:36
Java+Selenium
Python爬虫:批量爬取CSDN文章并保存为md文件!(内含将html转为markdown方法)
2、完整代码及代码分析fromseleniumimport
webdriver
importosimporttimeimporthtml2textashtfrombs4importBeautifulSoupi
Code皮皮虾
·
2020-08-26 11:24
Python爬虫
微博头条信息爬取保姆级教程,让你及时了解最新咨询!
完整代码及代码分析三、图片辅助理解运行结果一、微博网页分析可以看见微博数据加载需要滑动滚轮,想要更多数据那么就需要使用到Selenium操纵滑轮二、完整代码及代码分析fromseleniumimport
webdriver
importtimeimportpymysqlfromselenium.
webdriver
.chrome.optionsimportOptionsfro
Code皮皮虾
·
2020-08-26 11:52
Python爬虫
爬虫面试
但是我们有时候需要让它内嵌在代码中运行,Selenium库里有个叫
WebDriver
的API。
WebDriver
有点儿像可以加
diesuan4284
·
2020-08-26 11:07
(selenium系列之五)键盘事件
模拟键盘事件可以使用Keys类提供的键盘方法,具体如下:#coding=utf-8fromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeysdriver
Candice_92
·
2020-08-26 11:41
selenium
Python+selenium+
webdriver
之setUp、tearDown重复执行
tearDownClass()、@classmethod】如下:classLog(unittest.TestCase):@classmethoddefsetUpClass(self):self.driver=
webdriver
.Firefox
缓和的劫持
·
2020-08-26 08:35
Selenium(2)Chrome 正在受到自动化软件控制 – 解决办法
,或者直接找下面路径HKEY_CURRENT_USER\Software\Google\Chrome\TriggeredReset删除即可后面试了还是不成功,然后试了第二种方法加启动配置option=
webdriver
.Chro
yanyan0614
·
2020-08-26 08:54
Selenium
selenium 安装与 chromedriver安装
直接使用pip安装1pipinstallselenium用Chrome浏览器来测试1fromseleniumimport
webdriver
23browser=
webdriver
.Chrome()4browser.get
weixin_33850890
·
2020-08-26 08:27
解决Selenium
Webdriver
执行测试时,每个测试方法都打开一个浏览器窗口的问题
虽然把
WebDriver
定义为一个静态变量了,但是每次执行测试都要打开多个窗口,挺浪费时间的。找了很多中方法,比如使用setUpClass,BeforeSuite都没有完全解决问题。
weixin_30955341
·
2020-08-26 08:18
selenium中的setUp,tearDown与setUpClass,tearDownClass的区别
defsetUpClass(cls):cls.driver=
webdriver
.Chrome()cls.driver.maximize_window()defsetUp(self):self.driver.get
weixin_30591551
·
2020-08-26 08:36
Windows下配置Chrome
WebDriver
WebDriver
多用来执行自动化测试,可以通过Java文件或者其他方式在测试的时候打开,Firefox的自带了
WebDriver
,但是Chrome没有,需要手动安装首先下载Chrome的
WebDriver
呜呜呜啦啦啦
·
2020-08-26 08:00
Selenium
Webdriver
之Chrome浏览器操作小记
SeleniumSelenium是一套跨平台的浏览器自动化测试框架(工具),支持在多种系统环境、多种浏览器环境下使用,还可以使用多种编程语言来编写测试。Selenium有多个项目构成,形成了一个多功能的测试系统:SeleniumCore:支持DHTML的测试案例(效果类似数据驱动测试),它是SeleniumIDE和SeleniumRC的引擎。SeleniumGrid-允许您在不同的计算机上并行运行
Anyers
·
2020-08-26 08:59
Python
Chrome
selenium
webdriver
调用google chrome配置chromedriver
在pycharm中输入以下代码:#coding=utf-8fromseleniumimport
webdriver
options=
webdriver
.Chrome()options.maximize_window
夏微凉秋微暖
·
2020-08-26 07:00
自动化测试
初次运行Selenium的ChromeDriver安装
fromseleniumimport
webdriver
browser=
webdriver
.Chrome()
karwik
·
2020-08-26 07:10
爬虫
非计算机专业测试之路
就测试行业而言吧,任何一个招聘岗位描述都是要会java,python,
webdriver
页面自动化或是Appium手机自动化等,好像不会编码就很难找到工作,为什么会这样呢?
测试大头兵
·
2020-08-26 06:29
selenium不加载图片+下拉滚动条
从豆瓣的源安装seleniumpipinstall-ihttps://pypi.douban.com/simple/selenium配置浏览器不加载图片fromseleniumimport
webdriver
opt
走在下雨天的人
·
2020-08-25 18:19
爬虫
python
使用Appium自动化测试app(五)------实战篇3(线程)
importosimportunittestimportthreadingimportrefromtimeimportsleepfromappiumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.support.uiimport
WebDriver
W
窒息的鱼
·
2020-08-25 17:17
Appium
使用Appium自动化测试app(四)------实战篇2
在这里我会罗列一些常用的方法:1.判断某一个元素在不在当前的页面if'selement'indriver.page_source:2.模拟滚动,获取设备窗口大小(以及其它)driver=
webdriver
.Remote
窒息的鱼
·
2020-08-25 17:16
Appium
selenium.common.exceptions.TimeoutException: Message: u'timeout\n解决办法
解决访问Https时不受信任SSL证书问题options=
webdriver
.ChromeOptions()options.add_argument(“service_args=[’–ignore-ssl-errors
爬虫王者
·
2020-08-25 17:12
爬虫
selenium编写web测试用例
测试用例:百度和有道;执行测试用例:RunTest.py百度用例脚本:fromseleniumimport
webdriver
importunittestimporttimeclassMy_Tests(unittest.TestCase
芝士冰激凌红茶谢谢
·
2020-08-25 17:09
Selenium自动化测试
Appium操作手机网络设置(打开关闭wifi,打开关闭数据流量)
Appium并不是所有的手机都能打开数据关闭数据流量成功,打开wifi有确认按钮,需要自己设置下面放代码#/usr/bin/envpython#-*-coding:utf-8-*-fromappium.
webdriver
.connectiontypeimportConnectionTypeclassinternet_class
忆-往-昔
·
2020-08-25 17:25
8.pytest_失败截图和重跑机制
失败截图1.失败截图可以写到conftest.py文件里,这样用例运行时,只要检测到用例实例,就调用截图的方法,并且把截图存到html报告上;romseleniumimport
webdriver
importpytestimportosdriver
橘九。
·
2020-08-25 17:50
Pytest
Selenium3自动化测试——22.使用DDT运行同一测试用例
1)安装pipinstallddt2)以百度搜索为例,确定DDT的用法importunittestfromtimeimportsleepfromseleniumimport
webdriver
fromddtimportddt
雪爱上夏天
·
2020-08-25 17:11
Selenium自动化测试
appium三种等待元素的方法
全局等待30s不管元素是否已经加载示例:driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS);(3)
WebDriver
Wait显示等待
Test-wang
·
2020-08-25 17:21
appium
appium入门指南(十)mac编译
webdriver
agent 报错汇总
一、xcode升级后编译报错解决方法可以有两种,一种是不使用NewBuildSystem,在File>Project/WorkspaceSettings中的ShareProject/WorkspaceSettings里buildsystem将NewBuildSystem(Default)切换成Legacybuildsystem。其次是根据出错信息,在新创建系统模式下,去除多余的引用重建。Info.
just to test
·
2020-08-25 17:03
appium
selenium系列–unittest单元测试框架
语言下的单元测试框架,可能大家会有疑问,这与自动化测试工具selenium有什么关系,在seleniumIDE中我们录制的脚本可以通过ExportTestCaseAs导出Python2/unittest/
WebDriver
lanjingling_zz
·
2020-08-25 17:00
自动化测试
06 登陆账号参数化代码实战
importjava.util.Iterator;importjava.util.Map;importorg.openqa.selenium.By;importorg.openqa.selenium.
WebDriver
l19930105
·
2020-08-25 17:59
UI自动化高阶用法
--领略编程之美
Appium-Android:三种等待时间设置方法
强制等待需要设置固定的等待时间,无论元素是否加载完成,均需等待该时间由time.sleep()方法实现不推荐使用importtimetime.sleep(5)#固定此段等待时间为5s2.隐式等待隐式等待是由
webdriver
R.zb
·
2020-08-25 17:28
#
Appium
from appium import
webdriver
报错ModuleNotFoundError: No module named appium的解决方法
问题:appium+python环境搭建完毕,fromappiumimport
webdriver
报错:ModuleNotFoundError:Nomodulenamedappium解决方法:1.安装appium-python-client2
苦逼生活
·
2020-08-25 17:27
测试中遇到的问题
appium操作tim
#coding=utf-8fromappiumimport
webdriver
importtime#模拟滑屏fromappium.
webdriver
.common.touch_actionimportTouchActiondesired_caps
112479
·
2020-08-25 17:52
appium
Appium 真机调试
developer选项里的EnableUIAutomation开启,不然会报错:selenium.common.exceptions.
WebDriver
Exception:Message:u'Anewsessionc
猫小呆
·
2020-08-25 17:02
Selenium
WebDriver
基于Python - 使用unittest编写单元测试(二)
Selenium
WebDriver
是一个浏览器自动化测试的API集合。它提供了很多与浏览器自动化交互的特性,并且这些API主要是用于测试Web程序。
dmlr
·
2020-08-25 17:23
Selenium
Python
appium使用教程(三)-------------用例编写
1.驱动importos,time,unittestfromappiumimport
webdriver
PATH=lambdap:os.path.abspath(os.path.join(os.path.dirname
denglilou8688
·
2020-08-25 17:44
Python自动化测试系列[v1.0.0][html-testRunner测试报告]
1420:41@Author:davieyang@File:test_AjaxElement.py@Software:PyCharm'''importtracebackfromseleniumimport
webdriver
fromselenium.common.excepti
Davieyang.D.Y
·
2020-08-25 17:42
Python自动化测试系列[v1.0.0][数据驱动DDTJSON]
"]测试代码#encoding=utf-8"""__title__=''__author__='davieyang'__mtime__='2018/4/21'"""fromseleniumimport
webdriver
importunittestimporttimeimport
Davieyang.D.Y
·
2020-08-25 17:42
五、Appium-python-UI自动化之强制等待:sleep,隐式等待:implicitly_wait,显示等待:
WebDriver
Wait()
importtimesleep(10)#等待10秒二、隐式等待:implicitly_wait()'''由
webdriver
提供的方法,一旦设置,这个隐式等待会在
WebDriver
对象实例的整个生命周期起作用
chushujin
·
2020-08-25 17:07
appium+python
自动化用例执行和测试报告展示
fromtkinterimport*fromseleniumimport
webdriver
importtkinterastkfromtkinterimportscrolledtext,messageboxfromtimeimportsleepfromtkinterimportttkimportxlrdimportrequestsimportjsonimportqrcodeimportunittes
caiyong_
·
2020-08-25 17:31
python-tkinter
python客户端和Appium服务端联调出现的问题解决办法
如下图:可是,运行fromappiumimport
webdriver
出错,上报:ImportError:cannotimportnameInvalidArgumentException错误。
baimu2849
·
2020-08-25 17:27
python selenium unittest web ui 自动化实践
#-*-coding:utf-8-*-fromseleniumimport
webdriver
fromselenium.
webdriver
.common.keysimportKeysfromselenium.webdri
马叔叔不坏
·
2020-08-25 17:52
JavaWeb
UI自动化
python
appium+python 存在多个类时,不用每次都初始化driver解决办法
driver_configure.py#coding:utf-8__author__='**''''description:driver配置'''fromappiumimport
webdriver
小辣椒1213
·
2020-08-25 17:13
APP测试
python
Appium+python连接一个设备并启动指定的APK
一、Appium运行的原理我们的电脑(client)上运行自动化脚本,调用的是
webdriver
的接口,appiumserver接受到我们电脑上(client)发送过来的命令后他会将这些命令转换为Uiautomator
Nanxi_ss
·
2020-08-25 17:55
Python+unittest做UI自动化测试时用例执行失败自动截图,创建以时间命名的文件夹和图片
fromseleniumimport
webdriver
importosimporttimedeftest_currentDate():'''生成当前日期字符串'''currentDate=time.localtime
Missshi
·
2020-08-25 17:54
UI自动化
Python+Selenium+unittest+PageObject设计模式——登录实例
2.driver.py启动浏览器驱动fromseleniumimport
webdriver
deftest_br
Missshi
·
2020-08-25 17:54
UI自动化
python+unittest单元测试框架
自动化测试的大体实现思路分析case,写成脚本,集成脚本,执行脚本seleniumide录制的百度搜索脚本(稍微做了整理)#-*-coding:utf-8-*-fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromselenium.
webdriver
.common.keysimportKeysfromselen
蒲公英上的尘埃
·
2020-08-25 17:44
上一页
81
82
83
84
85
86
87
88
下一页
按字母分类:
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
其他