使用appium访问的iOS控制中心 [英] Access iOS Control Center using appium

查看:414
本文介绍了使用appium访问的iOS控制中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用appium打开控制中心和下面的code:

I am trying to open the Control Center using appium and the following code:

    int halfWidth = driver.manage().window().getSize().width / 2;
    int screenHeight = driver.manage().window().getSize().height;
    driver.swipe(halfWidth, screenHeight-5, halfWidth, screenHeight-300, 500);  // driver is instance of IOSDriver

代替打开控制中心的应用程序只需在屏幕上绘制向上从底部(采用坐标输入)。任何人都知道如何使用appium和刷卡(或任何其他方式)来打开控制中心?

Instead of opening control centre the app simply draws on the screen upwards from the bottom (using coordinates input). Anyone know how to open Control Center using appium and swipe (or any other way)?

谢谢,查理

推荐答案

好了,所以相当数量的调查后,在我看来,这是不可能的。如果你真的需要这个功能,那么我认为像茄子的工具可能是适当的。

Ok so after a fair amount of investigation it seems to me that this is not possible. If you really need this functionality then I think a tool like eggplant might be appropriate.

这篇关于使用appium访问的iOS控制中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆