zoukankan      html  css  js  c++  java
  • Appium Server 传递iOS参数

    Appium  server  iOS Capabilities 参数

    iOS Only

    Capability Description Values
    calendarFormat (Sim-only) Calendar format to set for the iOS Simulator e.g. gregorian
    bundleId Bundle ID of the app under test. Useful for starting an app on a real device or for using other caps which require the bundle ID during test startup. To run a test on a real device using the bundle ID, you may omit the ‘app’ capability, but you must provide ‘udid’. e.g. io.appium.TestApp
    udid Unique device identifier of the connected physical device e.g. 1ae203187fc012g
    launchTimeout Amount of time in ms to wait for instruments before assuming it hung and failing the session e.g. 20000
    locationServicesEnabled (Sim-only) Force location services to be either on or off. Default is to keep current sim setting. true or false
    locationServicesAuthorized (Sim-only) Set location services to be authorized or not authorized for app via plist, so that location services alert doesn’t pop up. Default is to keep current sim setting. Note that if you use this setting you MUST also use the bundleId capability to send in your app’s bundle ID. true or false
    autoAcceptAlerts Accept iOS privacy access permission alerts (e.g., location, contacts, photos) automatically if they pop up. Default is false. true or false
    autoDismissAlerts Dismiss iOS privacy access permission alerts (e.g., location, contacts, photos) automatically if they pop up. Default is false. true or false
    nativeInstrumentsLib Use native intruments lib (ie disable instruments-without-delay). true or false
    nativeWebTap (Sim-only) Enable “real”, non-javascript-based web taps in Safari. Default: false. Warning: depending on viewport size/ratio this might not accurately tap an element true or false
    safariAllowPopups (Sim-only) Allow javascript to open new windows in Safari. Default keeps current sim setting true or false
    safariIgnoreFraudWarning (Sim-only) Prevent Safari from showing a fraudulent website warning. Default keeps current sim setting. true or false
    safariOpenLinksInBackground (Sim-only) Whether Safari should allow links to open in new windows. Default keeps current sim setting. true or false
    keepKeyChains (Sim-only) Whether to keep keychains (Library/Keychains) when appium session is started/finished true or false
    localizableStringsDir Where to look for localizable strings. Default en.lproj en.lproj
    processArguments Arguments to pass to the AUT using instruments e.g., -myflag
    interKeyDelay The delay, in ms, between keystrokes sent to an element when typing. e.g., 100
    showIOSLog Whether to show any logs captured from a device in the appium logs. Default false true or false
    sendKeyStrategy strategy to use to type test into a test field. Simulator default: oneByOne. Real device default: grouped oneByOne, grouped or setValue
    screenshotWaitTimeout Max timeout in sec to wait for a screenshot to be generated. default: 10 e.g., 5
    waitForAppScript The ios automation script used to determined if the app has been launched, by default the system wait for the page source not to be empty. The result must be a boolean e.g. true;, target.elements().length > 0;, $.delay(5000); true;
    事在人为,功不唐捐
  • 相关阅读:
    Linux使用Public Key方式远程登录
    Linux编译安装Mariadb数据库
    Centos7环境搭建lnmp环境
    浅谈Java中的System.gc()的工作原理
    Eclipse快捷键大全(转载)
    java中的参数传递——值传递、引用传递
    Visual Studio 2017 安装后无法创建c++或MFC项目
    ubuntu sendmail配置发送邮件
    ubuntu11.0静态IP地址配置
    cin与cout详解
  • 原文地址:https://www.cnblogs.com/xinleishare/p/4369677.html
Copyright © 2011-2022 走看看