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
Python使用selenium+PIL实现网页长屏截图
selenium+PIL实现网页长屏截图代码如下:代码如下:importglobimportosimporttimeimportnumpyfromPILimportImagefromseleniumimport
webdriver
classScreenLongShot
毛维
·
2020-08-01 05:04
python
python+selenium 判断元素是否存在,是否可点击,是否被选中--最全的解释,一定不要错过
Selenium
Webdriver
提供两种类型的wai
新鲜的柠檬
·
2020-08-01 05:26
selenium自动化
driver.startActivity 启动app出现 An unknown server-side error occurred while processing the command...
driver.startActivity("com.xxx.module.xxx","com.xxx.module.xxx.hibox.ui.entry.EntryActivity");[INFO]org.openqa.selenium.
WebDriver
Exception
weixin_34320724
·
2020-08-01 04:29
滚动条拉倒底部方法
window.scrollTo(0,0);竖向滚动条置底window.scrollTo(0,document.body.scrollHeight)#coding=utf-8fromseleniumimport
webdriver
importtime
weixin_30687587
·
2020-08-01 03:11
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function问题解决
*;publicclassLoginOms{publicstaticvoidmain(String[]args){
WebDriver
browser=n
16升
·
2020-08-01 02:33
自动化测试
随笔-
WebDriver
应用实例(java)——操作HTML5的存储对象
该实例的目的是能够读取HTML5的localStorage和sessionStorage,并删除存储的内容。具体实例代码如下:packagecn.om.TestHTML5;importorg.testng.annotations.Test;importorg.testng.annotations.BeforeMethod;importorg.openqa.selenium.JavascriptEx
通往光的路
·
2020-08-01 02:59
selenium
自动化测试
selenium学习笔记
selenium
WebDriver
自动化测试
java.lang.NoSuchMethodError自动化测试问题selenium-java
今天使用selenium-java自动操作火狐浏览器,代码如下:packagecom.stylefeng.guns.test;importorg.openqa.selenium.
WebDriver
;importorg.openqa.selenium.firefox.FirefoxDriver
想当大佬的咸鱼双
·
2020-08-01 02:02
自动化测试
测试
福利:appium+selenium+python 模拟手工点击趣头条(app赚钱软件)
最近发现网上有很火的读新闻赚钱的app,于是自己写了一个小脚本,模拟手工操作,点击新闻阅读新闻使用python语言+真机下面直接上源码#coding=utf-8fromappiumimport
webdriver
importtime
周大人
·
2020-08-01 02:56
python小程序
自动化
基于appium自动化测试案例10--TouchAction--连续滑动操作(学习笔记)
#导入模块fromappiumimport
webdriver
fromtimeimportsleepfromappium.
webdriver
.common.touch_actionimportTouchActionfromselenium.
webdriver
.support.uiimport
WebDriver
Waitfromselenium.common.exceptionsimportNoSuch
小黑测试
·
2020-08-01 01:39
appium自动化测试
WebDriver
Agent安装
转载自https://testerhome.com/topics/7220部分内容有改动下载首先下载
WebDriver
Agentgitclonehttps://github.com/facebook/
WebDriver
Agent.git
于连林520wcf
·
2020-08-01 01:42
第四章:
Webdriver
4-1
Webdriver
概述
Webdriver
概述
Webdriver
(Selenium2)是一种用于Web应用程序的自动测试工具,它提供了一套友好的API,与Selenium1(Selenium-RC)
tjjingpan
·
2020-08-01 01:31
Selenium自动化测试教程
selenium+python使用JavaScript脚本
调用js方法:execute_script(script,*args)fromseleniumimport
webdriver
#登录browser.find_element_by_id("username
aiee
·
2020-08-01 00:30
测试开发
Appium对android.view.View进行操作
找到了这样一篇代码,先存起来,继续写的时候用原贴网址:https://www.cnblogs.com/cherry-ning/articles/11178237.htmlfromappiumimport
webdriver
importtimed
siling115
·
2020-08-01 00:02
appium
Selenium实例化+
WebDriver
工作原理及协议
(一)Selenium实例化过程分析1、在SE的执行过程中,一般都会有如下一行代码,代表着引入
webdriver
模板:fromseleniumimport
webdriver
因为我用的是Chrome浏览器来进行自动化测试
shan286
·
2020-08-01 00:37
Python
Selenium学习
Python+selenium 抓取美团单页接口数据里的用户评论和用户名称以及打分数据
缺点是,速度比较慢,抓取起来耗时,并且经常容易弹出验证码,还未找出好办法解决二、代码部分代码部分没有加try…except语句,有需要的可以自己添加fromseleniumimport
webdriver
fromselenium.webdriv
Dr.Disrespect
·
2020-07-31 23:55
爬虫
vip电影下载
importrequestsimporttimefromlxmlimportetreefromqueueimportQueueimportthreadingimportosimportreimportjsonimporturllibimportexecjsfromurllibimportrequestfromseleniumimport
webdriver
importhashlibimportexe
qzmzhn
·
2020-07-31 23:23
appium爬取微信朋友圈信息 真机测试
坏境:安卓9,荣耀10,微信7.0.11代码:fromappiumimport
webdriver
fromselenium.
webdriver
.support.uiimport
WebDriver
Waitfromselenium.
webdriver
.supportimportexpected_conditionsasEC
TAF_MT
·
2020-07-31 22:30
爬虫进阶
Appium 通过监控日志完成Andriod手机验证码登录
通过日志拿到验证码,从而完成登录PS:手机为oppor11#coding=utf-8'''Createdon2018年5月16日@author:Administrator'''fromappiumimport
webdriver
importos
贫僧纠结中
·
2020-07-31 22:02
Appium
VBA使用
webdriver
整理了下vbexcelhome之前分享的一个vb的
webdriver
类。看了一下
webdriver
是怎么运行的一文。添加了一些东西。先放出来。
qq_24499417
·
2020-07-31 21:28
vba
C#调用chrome edge
1.安装selenium支持包和
webdriver
.2.最后一个
webdriver
不知道是不是老版本的edge里用的。安了也不能正常使用。
qq_24499417
·
2020-07-31 21:27
C#
python3使用selenium爬取淘宝宝贝iPhone的信息
fromseleniumimport
webdriver
fromselenium.
webdriver
.common.byimportByfromselenium.common.exceptionsimportTimeoutExceptionfromselenium.
webdriver
.support.uiimport
WebDriver
Waitfromselenium.
webdriver
.suppor
Al_zero
·
2020-07-31 21:17
ios实现appium自动化测试
便于我们查找元素,如图:然后我们启动appium,我使用镜像下载的appium启动总是显示错误,所以我使用了界面安装版的,如图:启动之后,我们就开始写代码了,我们先测试一下能否跑通:fromappiumimport
webdriver
iosT
飞奔的回锅肉
·
2020-07-31 21:38
TouchAction类中的tap()方法和press()方法
deftest_2lotteryDraw():driver.tap([(500,2200),(1000,2300)],500)运行上面的代码段时,报错:selenium.common.exceptions.
WebDriver
Exception
Noiccy
·
2020-07-31 21:16
python
测试技术
Appium测试项目异常Returned value cannot be converted to WebElement: {ELEMENT=1}
Users\AppData\Local\Temp\testng-eclipse--462043372\testng-customsuite.xmlFAILED:plusorg.openqa.selenium.
WebDriver
Exception
miss_hua
·
2020-07-31 20:17
Appium
12 综合实战
网易邮箱注册:importorg.junit.After;importorg.openqa.selenium.By;importorg.openqa.selenium.
WebDriver
;importorg.openqa.selenium.chrome.ChromeDriver
博客已迁移I米阳
·
2020-07-31 19:08
在Selenium测试中获取JavaScript的执行结果。
WebDriver
方式:LongcurrentCount=(Long)((JavascriptExecutor)getDriver()).executeScript("returndijit.byId(
libin06370120
·
2020-07-31 19:38
Selenium
selenium---浏览器操作方法
selenium对浏览器的相关操作浏览器操作方法在做web自动化时候,无非就是通过对浏览器进行点点点的操作,比如:最大化,最小化,点击,清楚,前进,后退等操作1、进入网页fromseleniumimport
webdriver
driver
测试-安静
·
2020-07-31 19:00
Appium_学习笔记
今天使用appium来测试android客户端,使用的是selenium+
webdriver
+java,发现客户端的引导页无法操作,搜索到内容如下:1.滚动条的滑动(http://www.cnblogs.com
天涯飘雪
·
2020-07-31 18:39
Selenium
Appium_python code(2)
#coding:utf8importloggingimporthistsimilarimporttracebackimporttimeimportosfromseleniumimport
webdriver
fromselenium.common.exceptionsimportNoSuchElementException
天涯飘雪
·
2020-07-31 18:39
Selenium
selenium常用知识点(三)-启动chrome模拟器模拟其他设备
如何手工启动chrome模拟器请参阅Chrome浏览器通过切换useragent模拟其他浏览器方法通过以下代码可以启动chrome浏览器中的AppleiPhone6模拟器System.setProperty("
webdriver
.chrome.driver
iceman03
·
2020-07-31 18:42
移动自动化
selenium2
automatorx搭建ios自动化测试环境
automatorx简介:由网易游戏部门开源的项目,ios端现在由
Webdriver
agent驱动,android端由Automator驱动。
hqzxsc2006
·
2020-07-31 18:45
iOS
Python
使用Appium进行Android自动化测试 - 通过UI Automator方式查找元素
中使用UIAutomator查找元素的方法1.直接使用driver.find_element_by_android_uiautomator(UIAutomatorlocator)2.fromappium.
webdriver
.common.mobilebyimportMobileBydriver.find_element
闲来
·
2020-07-31 17:02
Appium
appium 自动化测试踩过的坑
WebDriver
Exception:Message:Anunknownserver-sideerroroccurredwhileprocessingthecommand.Originalerror:NoChromedriverfoundthatcanautomateChrome
banxuning0425
·
2020-07-31 16:01
Selenium登录网站的多种实现手段
文章目录用
WebDriver
点击UI实现登陆用HttpClient模拟接口进行登录直接手动抓登录信息写在项目中用复用浏览器getCookie来登录其他用
WebDriver
点击UI实现登陆这一种是最常规的方式
abcnull
·
2020-07-31 15:46
Selenium
Appium页面滑动连续操作-TouchAction
TouchAction包含一系列操作,例如短按、长按、点击、移动、暂停,由不同的操作可以组成一套动作,使用TouchAction需要先导入对应的模块:fromappium.
webdriver
.common.touch_actionimportTouchAction
兜里有糖yoohoo
·
2020-07-31 14:36
appium
Web、移动端、桌面端自动化测试工具或框架推荐
一、WebUI自动化1.工具或框架Unittest框架,Selenium+
Webdriver
+Python集成开发优势:①使用脚本直接来写,可以锻炼测试的代码能力②对于一个团队中人才的吸引也是有很大帮助的
NoamaNelson
·
2020-07-31 14:38
测试总结
Appium元素定位
id值可以通过Appium或uiautomatorviewer进行查找fromappiumimport
webdriver
fromtimeimportsleepfromselenium.common.exceptionsimportNoSuchElementExceptiondesired_caps
Mwyldnje2003
·
2020-07-31 14:46
Appium自动化测试
基于opencv的selenium滑动验证码的实现
fromseleniumimport
webdriver
fromselenium.
webdriver
.common.action_chainsimportAc
·
2020-07-31 13:01
python+appium+夜神模拟器刷快手极速版金币套现,帮你赚够早餐钱
python环境二、配置好appium库三、准备好工具:1、AndroidSDK2、AppiumServer3、JDK4、夜神模拟器原理模拟人的手指去点击手机,打开应用并滑动观看fromappiumimport
webdriver
fromappium.
webdriver
.extensions.android.nativekeyimportAndroidKeyimporttimeimp
Dr.Disrespect
·
2020-07-31 12:23
爬虫
python
android
Selenium-
WebDriver
& HTMLUnit
Inmypaper,IneedtodistinguishthedifferencebetweenSelenium-
WebDriver
andHtmlUnit.Sogooglethat!
zd10101501
·
2020-07-31 11:01
工具
Selenium HtmlUnitDriver多浏览器的支持
转载:http://www.51testing.com/html/05/n-2420905.html1、HtmlUnitDriver
WebDriver
包括一个基于HtmlUnit的无界面实现,称为HtmlUnitDriver
wendyzhi125
·
2020-07-31 11:38
selenium
webdriver
标签click动作失效
问题:元素定位正确,但是click无反应,没有跳转到目标链接gn_logo_loc=(By.XPATH,"//a[@node-type='logolink']")driver.find_element(*gn_logo_loc).click()总结网上收集的几种方法:1.使用js+execute_script:无效js='document.getElementsByClassName("S_spe
爆爆爆炸beng
·
2020-07-31 10:30
Appium_py_切换首页分类
#coding=utf-8fromappiumimport
webdriver
desired_caps={}desired_caps[‘platformName’]=‘Android’desired_caps
天涯飘雪
·
2020-07-30 23:22
Appium
Selenium_
webdriver
对 chrome driver的调用
今天在使用selenium+
webdriver
打开chrome,代码如下:fromseleniumimport
webdriver
driver=
webdriver
.Chrome()driver.get("
天涯飘雪
·
2020-07-30 23:22
Selenium
selenium + httpclient 邮箱模拟登录
org.seleniumhq.seleniumselenium-java2.45.0net.sourceforge.htmlunithtmlunit2.152、核心代码:System.setProperty("
webdriver
.chrome.driver
fuck_prometheus
·
2020-07-30 23:01
无头浏览器
fromseleniumimport
webdriver
fromselenium.
webdriver
.chrome.optionsimportOptions#实现无头浏览器chrome_options=Options
马蹄哒哒
·
2020-07-30 22:00
selenium+python执行多条用例只打开一次浏览器(@classmethod修饰符的使用)
/usr/bin/envpython#--coding:utf-8--fromselenium.
webdriver
.supportimportexpected_conditionsasECfrommall_m
YZF_DD
·
2020-07-30 22:37
Python+Selenium+unittest实现多个类测试用例文件只做一次打开浏览器、登录、关闭浏览器操作
所以,可以在setUp方法前定义一个全局dr=
webdriver
.Chrome(),在每次用例执行结束后执行刷新一次浏览器操作或者不刷新,视项目而定。
Missshi
·
2020-07-30 22:57
UI自动化
webdriver
_api_设置元素等待
设置元素等待-----元素定位时的操作1.sleep(s)pythontime模块下面的方法2.implicitly_wait(s)
webdriver
隐式等待3.显示等待seleniu模块中的EC类提供的方法
想_上天
·
2020-07-30 21:41
selenium+scrapy
spider.py#-*-coding:utf-8-*-importscrapyfromwy.itemsimportWyItemfromseleniumimport
webdriver
classWySpiderSpider
迷路的贝壳儿
·
2020-07-30 21:42
爬虫
上一页
106
107
108
109
110
111
112
113
下一页
按字母分类:
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
其他