这里指触摸屏幕的长按

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
// Using touch actions
let action = new wd.TouchAction();
action.longPress({el: element});
await action.perform();

Ruby # ruby_lib example
touch_action.long_press(element).perform

# ruby_lib_core example
@driver.touch_action.long_press(element).perform

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(长按)相关推荐

  1. Android WebView Long Press长按保存图片到手机

    <span style="font-size:18px;">首先要先注册长按监听菜单private String imgurl = "";/**** ...

  2. Long Press(长按功能)

    1.实现长按功能:当用户按下后0.1s内不会有变化,0.1s后变化然后和普通按同时还原.如下图(橘黄色IsDelaying区域为长按,红色为正常按击,紫色区域为判断双击区域) 增加MyButton代码 ...

  3. appium+python自动化33-解锁九宫格(TouchAction)

    TouchAction 1.源码可以在这个路径找到:Lib\site-packages\appium\webdriver\common\touch_action.py class TouchActio ...

  4. Appium常用操作及H5页面元素定位

    目录 1.去登录考研帮系统 2.高级手势操作 1.tap() 2.移动 move_to 3.滑屏操作 3.多点触控 multiAction 4.原生嵌套H5 1.去登录考研帮系统 import tim ...

  5. day15-Appium高级手势操作

    Appium高级手势操作 滑动操作 scroll事件 概念 从一个元素滑动到另外一个元素,直到页面自动停止,模拟人滑动一下的操作.必须要求两个元素都在界面上可见,否则会报错. orgin_el:滑动开 ...

  6. appium---TouchAction

    我们在做app测试的时候,都会写一些长按,双击,滑动,拖动等一系列简单的操作来验证按钮或者跳转页是否正常的用例,那么我们在做自动化测试的时候这些操作应该怎么去做呢? TouchAction Touch ...

  7. AcheGesture 简介(使用方法 / 中文教程)

    http://blog.zinewow.com/catalog.asp?tags=AcheGesture 基于Starling框架的AcheGesture是为基于Adobe AIR技术的移动应用提供的 ...

  8. Flutter技术与实战(4)

    Flutter基础 文章目录 Flutter基础 Widget,构建Flutter界面的基石. Widget渲染过程 Widget Element RenderObject RenderObjectW ...

  9. 一个Android菜鸟入门Flutter 笔记(一)

    1. Dart 基础语法 1.1 hello world 先来看个hello world,入口依然是main方法. printInteger(int a) {print('Hello world, t ...

最新文章

  1. 在组策略中通过.zap的形式发布软件!
  2. python 正则的使用 —— 编写一个简易的计算器
  3. CCRD_TOC_2008年第2期
  4. linux服务器之间文件复制命令
  5. ai字体素材网站_综合网站大全,字体、设计、图片各种素材管够,资源丰富你懂得...
  6. 设计灵感|网页建议页面(联系页面)版式案例
  7. python的核心理念_python核心基础 - 草稿
  8. python基础一 day17 二分查找算法
  9. Gradle教程Part2:java工程
  10. 让MySQL支持InnoDB
  11. 贺利坚老师汇编课程43笔记:DUP用来数据的重复duplicate
  12. maven错误相关(整理中)
  13. RN开发模型,供参考
  14. 制作自己的个人博客网站
  15. Python 爬虫监控女神的QQ空间新的说说,实现秒赞,并发送说说内容到你的邮箱
  16. HP惠普打印机驱动安装详解
  17. 2013硕士毕业生薪资待遇
  18. Golang四舍五入保留两位小数
  19. 真正意义上第一个APP 可以用的 老黄历~~~
  20. 为什么很多商家开始搭建自己的小程序商城?

热门文章

  1. css动画和js动画_CSS与JS动画:哪个更快?
  2. 7-29 修理牧场 (25分)(PTA实验题)
  3. 名帖73 柳公权 楷书《玄秘塔碑》
  4. 【目前点赞排名】投票倒计时五天:继续为你喜欢的征文作品投票吧!
  5. conenct的用法(2种方法)
  6. 使用 parted 对单个磁盘进行分区并进行配额
  7. STM32F103ZE单片机FSMC接口读取NAND Flash芯片K9F1G08U0E的数据时出现数据丢失的解决办法
  8. Imperva WAF 添加黑名单
  9. 知网下载pdf(再也不想用CAJViewer啦!!!)
  10. Excel表格太单调?教你可视化三板斧!