Background App

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

Send the currently running app for this session to the background //将此会话当前正在运行的应用程序发送到后台

Example Usage
Java driver.runAppInBackground(Duration.ofSeconds(10));
Python self.driver.background_app(10)
Javascript // webdriver.io example
driver.background(10);
// wd example
await driver.backgroundApp(10);
Ruby # ruby_lib example
background_app(10)
# ruby_lib_core example
@driver.background_app(10)
C# driver.BackgroundApp(10)
PHP $driver->backgroundApp(10);
Description

Send the currently active app to the background, and either return after a certain amount of time, or leave the app deactivated. There are 3 types of parameters which may be passed to this method: //将当前活动的应用程序发送到后台,并在一定时间后返回,或使应用程序处于停用状态。有3种类型的参数可以传递给此方法:

  • 1.An object that looks like {"seconds": secs}, where secs is an integer designating how long, in seconds, to background the app for. -1 means to deactivate the app entirely.

  • 2.null, which means to deactivate the app entirely.

  • 3.Deprecated An integer: how long, in seconds, to background the app for. -1 means to deactivate the app entirely.
    iOS tests with XCUITest can also use the mobile: terminateAppmethod to terminate the current app (see detailed documentation), and the mobile: activateApp to activate an existing application on the device under test and moves it to the foreground (see detailed documentation).

Support
Appium Server

详见

Appium Clients

详见

HTTP API Specifications
Endpoint

POST /session/:session_id/appium/app/background

URL Parameters
name description
session_id ID of the session to route the command to
JSON Parameters
name type description
seconds number How long to run app in background.
Response

null

Appium-Background App(后台应用程序)相关推荐

  1. iOS Background Fetch 后台应用程序刷新的使用

    前言:写这篇文章是由于最近在开发一款新的APP,以前开发的APP因为都属于工具类,也没有必要后台刷新,所以一直没有使用该功能,这次正好用到,所以写下记录下,顺便帮助自己加强记忆. 转载自:https: ...

  2. 2023微信社区小程序+APP+后台,附带超详细完整搭建教程【源码+教程】

    2023微信社区小程序+APP+后台,附带超详细完整搭建教程[源码+教程] 微信授权登陆正常,小程序和APP带后台 手机号登陆正常,发帖,建圈子.发活动. 微信小程序是一种轻量级的应用程序,可以在微信 ...

  3. Python +Appium 实现app自动化测试

    Python +Appium 实现app自动化测试 一.Appium简介 Appium是一款开源工具,用于自动化iOS.Android和Windows桌面平台上的本地.移动web和混合应用程序.原生应 ...

  4. ios swift请求框架_Swift iOS BackgroundTasks框架-只需4个步骤即可刷新后台应用程序

    ios swift请求框架 IOS allows app to refresh it content even when it is sent to background. iOS can intel ...

  5. App的selenium,Appium爬App!

    2019独角兽企业重金招聘Python工程师标准>>> Appium是一个跨平台移动端自动化测试工具,可以非常便捷地为iOS和Android平台创建自动化测试用例.它可以模拟App内 ...

  6. iOS App后台保活

    女主宣言 前段时间,笔者和GY哥一起吃饭聊天的时候,GY哥问了笔者一个问题,iOS App 可以后台保活吗?是如何做到后台保活的?当时笔者只想到了可以在后台播放静音的音乐,对于唤醒App,可以考虑使用 ...

  7. 后台开发(1)---app后台开发入门

    app后台开发入门 版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/weixin_36571185/article/details/70269448 ...

  8. 很多人花一大笔钱做APP、小程序

    很多人花一大笔钱做APP.小程序, 是纯粹为了做这个东西而做这个东西, 也就是说他们只是觉得需要这个东西, 但为什么需要? 如何使它发挥最大的价值? 其实他们心里并没有一个很清晰的概念. 而且事实上A ...

  9. h5打开app_移动端产品比较分析:APP、小程序、H5

    本文笔者从实际工作经验出发,结合参考相关文章,对移动端产品(APP.小程序.H5)从13个方面进行了比较分析,与大家分享. 移动端产品包括小程序(本文特指微信小程序).APP(安卓.IOS).H5页面 ...

最新文章

  1. 跟小静读CLR via C#(02)-基元类型、引用类型、值类型
  2. 第四届国际软件自由日在西安邮电学院的发言
  3. 开发自定义控件的笔记 (2)
  4. 红帽linux系统轴控系统,红帽发布企业版 Linux(RHEL) 8.0
  5. 分享SharpZipLip使用代码
  6. 搭建TFS2008的过程及其注意事项
  7. Oracle 创建磁盘组报错ORA-15137的问题分析与解决思路
  8. 【算法】剑指 Offer 29. 顺时针打印矩阵
  9. Linux段错误-转
  10. 数学归纳法的相关证明
  11. Nginx源码分析 - HTTP模块篇 - TCP连接建立过程(21)
  12. 【SQL基础】SQL增删改查基本语句
  13. 计算机组装与维修blos,计算机组装与维护标准教程 设置bios参数.pptx
  14. ESP32上手笔记 | 06 -驱动1.3‘ ST7789 SPI屏幕(TFT_eSPI)
  15. 对链表进行插入排序。从第一个元素开始,该链表可以被认为已经部分排序。每次迭代时,从输入数据中移除一个元素,并原地将其插入到已排好序的链表中。
  16. Jetpack Compose UI组件入门教程
  17. 【U8】固定资产模块卡片管理栏目设置中没有“凭证号”栏目
  18. linux lzma c语言接口,编译squashfs和lzma
  19. 小萝莉五子棋(高能绕行)
  20. 【Unity】Unity 2D游戏开发(三)2D游戏常用功能及插件

热门文章

  1. Unity 华为HMS/AGC SDK集成简介(以接入华为广告流量变现服务为例)
  2. 计算机的ipv6地址,IPv6地址格式示例及IPv6与IPv4的区别分析
  3. Archlinux个人安装流程
  4. Vitis统一软件平台概览
  5. 剑指闲鱼?京东再战二手交易市场
  6. 桌面计算机属性参数怎么改,怎样给电脑设置IP地址参数
  7. RanoreX8安装手册
  8. 简笔画花边边框超简单_简单花边边框简笔画图
  9. python应用程序无法正常启动怎么办_LOL应用程序无法正常启动怎么办
  10. scp复制多个文件及通配符问题