Appium-Toggle Touch ID Enrollment(切换Touch ID注册)

谁借莪1个温暖的怀抱¢ 2022-11-18 13:41 134阅读 0赞

Toggle Touch ID Enrollment

          • Example Usage
          • Description
          • Support
            • Appium Server
            • Appium Clients
          • HTTP API Specifications
            • Endpoint
            • URL Parameters
            • JSON Parameters
            • Response

Toggle the simulator being enrolled to accept touchId (iOS Simulator only) //切换正在注册的模拟器以接受touchId(仅限iOS模拟器)

Example Usage

































Java driver.toggleTouchIDEnrollment(true);
Python self.driver.toggle_touch_id_enrollment()
Javascript // webdriver.io example
driver.toggleEnrollTouchId(true);
// wd example
await driver.toggleTouchIdEnrollment();
Ruby # ruby_lib example
toggle_touch_id_enrollment
# ruby_lib_core example
@driver.toggle_touch_id_enrollment
C# // TODO C# sample
PHP // TODO PHP sample
Description

To enable this feature, the allowTouchIdEnroll desired capability must be set to true. When allowTouchIdEnroll is set to true the Simulator will be enrolled by default, and the ‘Toggle Touch ID Enrollment’ changes the enrollment state. //要启用此功能,必须将allowTouchIdEnroll所需的功能设置为true。当allowTouchIdEnroll设置为true时,默认情况下将注册模拟器,“Toggle Touch ID Enrollment”更改注册状态

This call will only work if the Appium process or its parent application (e.g., Terminal.app or Appium.app) has access to Mac OS accessibility in System Preferences > Security & Privacy > Privacy > Accessibility list //只有当Appium进程或其父应用程序(例如。,终端.app或者应用程序.app)可以在“系统首选项”>“安全与隐私”>“隐私”>“辅助功能列表”中访问Mac OS辅助功能

Support
Appium Server





























































Platform Driver Platform Versions Appium Version Driver Version
iOS XCUITest 9.3+ 1.6.0+ All
UIAutomation None None None
Android Espresso None None None
UiAutomator2 None None None
UiAutomator None None None
Mac Mac None None None
Windows Windows None None None
Appium Clients













































Language Support Documentation
Java All appium.github.io
Python All appium.github.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/appium/simulator/toggle_touch_id_enrollment

URL Parameters













name description
session_id ID of the session to route the command to
JSON Parameters















name type description
enabled boolean If true, enable, if falsey disable, otherwise toggle (optional)
Response

null

发表评论

表情:
评论列表 (有 0 条评论,134人围观)

还没有评论,来说两句吧...

相关阅读

    相关 touch 命令

    touch 命令是用来创建或修改文件的时间戳的。它可以用来创建一个新的空文件,或者更新一个已存在文件的时间戳。 语法: touch \[选项\] 文件名 选项: -a: 仅

    相关 touch命令

    linux的touch命令不常用,一般在使用make的时候可能会用到,用来修改文件时间戳,或者新建一个不存在的文件。 1.命令格式: touch \[选项\]... 文件.

    相关 vue-touch

    [官网地址][Link 1] 因为vue-touch其实封装了 hammer.js的方法 其实我们这里介绍的也就是他几个事件;详情可以搜索 hammer.js的文档; ha

    相关 Ubuntu 的touch

    touch这个指令最长被使用的情况是: 建立一个空文档 将某个文件日期自定义为目前(mtime与atime)   文件的时间分为三类: 修改时间(modifation

    相关 Linux touch命令

    Linux touch命令用于修改文件或者目录的时间属性,包括存取时间和更改时间。若文件不存在,系统会建立一个新的文件。 ls -l 可以显示档案的时间记录。