Appium-Long Press(长按)
这里指触摸屏幕的长按
Long Tap
- Example Usage
- Support
- Appium Server
- Appium Clients
- HTTP API Specifications
- Endpoint
- URL Parameters
- JSON Parameters
- Response
Long press on the touch screen using finger motion events //使用手指运动事件长按触摸屏
Example Usage
Java |
TouchActions action = new TouchActions(driver); action.longPress(element); action.perform(); |
Python |
from appium.webdriver.common.touch_action import TouchAction # … actions = TouchAction(driver) actions.long_press(element) actions.perform() |
Javascript |
// webdriver.io example driver.touchPerform({ action: 'longPress' ,options: { element: element } }); // wd example |
Ruby |
# ruby_lib example touch_action.long_press(element).perform # ruby_lib_core example |
C# |
var touchAction = new TouchAction(Driver); touchAction.LongPress(element).Perform(); |
PHP | // TODO PHP sample |
Support
Appium Server
Platform | Driver | Platform Versions | Appium Version | Driver Version |
---|---|---|---|---|
iOS | XCUITest | 9.3+ | 1.6.0+ | All |
UIAutomation | 8.0 to 9.3+ | All | All | |
Android | Espresso | ?+ | 1.9.0+ | All |
UiAutomator2 | ?+ | 1.6.0+ | All | |
UiAutomator | 4.3+ | All | All | |
Mac | Mac | ?+ | 1.6.4+ | All |
Windows | Windows | 10+ | 1.6.0+ | All |
Appium Clients
Language | Support | Documentation |
---|---|---|
Java | All | seleniumhq.github.io |
Python | All | selenium-python.readthedocs.io |
Javascript (WebdriverIO) | All | |
Javascript (WD) | All | github.com |
Ruby | All | www.rubydoc.info |
PHP | All | github.com |
C# | All | github.com |
HTTP API Specifications
Endpoint
POST /session/:session_id/touch/longclick
URL Parameters
name | description |
---|---|
session_id | ID of the session to route the command to |
JSON Parameters
name | type | description |
---|---|---|
element |
number
|
ID of the element to double tap on |
Response
null
Appium-Long Press(长按)相关推荐
- Android WebView Long Press长按保存图片到手机
<span style="font-size:18px;">首先要先注册长按监听菜单private String imgurl = "";/**** ...
- Long Press(长按功能)
1.实现长按功能:当用户按下后0.1s内不会有变化,0.1s后变化然后和普通按同时还原.如下图(橘黄色IsDelaying区域为长按,红色为正常按击,紫色区域为判断双击区域) 增加MyButton代码 ...
- appium+python自动化33-解锁九宫格(TouchAction)
TouchAction 1.源码可以在这个路径找到:Lib\site-packages\appium\webdriver\common\touch_action.py class TouchActio ...
- Appium常用操作及H5页面元素定位
目录 1.去登录考研帮系统 2.高级手势操作 1.tap() 2.移动 move_to 3.滑屏操作 3.多点触控 multiAction 4.原生嵌套H5 1.去登录考研帮系统 import tim ...
- day15-Appium高级手势操作
Appium高级手势操作 滑动操作 scroll事件 概念 从一个元素滑动到另外一个元素,直到页面自动停止,模拟人滑动一下的操作.必须要求两个元素都在界面上可见,否则会报错. orgin_el:滑动开 ...
- appium---TouchAction
我们在做app测试的时候,都会写一些长按,双击,滑动,拖动等一系列简单的操作来验证按钮或者跳转页是否正常的用例,那么我们在做自动化测试的时候这些操作应该怎么去做呢? TouchAction Touch ...
- AcheGesture 简介(使用方法 / 中文教程)
http://blog.zinewow.com/catalog.asp?tags=AcheGesture 基于Starling框架的AcheGesture是为基于Adobe AIR技术的移动应用提供的 ...
- Flutter技术与实战(4)
Flutter基础 文章目录 Flutter基础 Widget,构建Flutter界面的基石. Widget渲染过程 Widget Element RenderObject RenderObjectW ...
- 一个Android菜鸟入门Flutter 笔记(一)
1. Dart 基础语法 1.1 hello world 先来看个hello world,入口依然是main方法. printInteger(int a) {print('Hello world, t ...
最新文章
- 在组策略中通过.zap的形式发布软件!
- python 正则的使用 —— 编写一个简易的计算器
- CCRD_TOC_2008年第2期
- linux服务器之间文件复制命令
- ai字体素材网站_综合网站大全,字体、设计、图片各种素材管够,资源丰富你懂得...
- 设计灵感|网页建议页面(联系页面)版式案例
- python的核心理念_python核心基础 - 草稿
- python基础一 day17 二分查找算法
- Gradle教程Part2:java工程
- 让MySQL支持InnoDB
- 贺利坚老师汇编课程43笔记:DUP用来数据的重复duplicate
- maven错误相关(整理中)
- RN开发模型,供参考
- 制作自己的个人博客网站
- Python 爬虫监控女神的QQ空间新的说说,实现秒赞,并发送说说内容到你的邮箱
- HP惠普打印机驱动安装详解
- 2013硕士毕业生薪资待遇
- Golang四舍五入保留两位小数
- 真正意义上第一个APP 可以用的 老黄历~~~
- 为什么很多商家开始搭建自己的小程序商城?