Access iOS Control Center using appium

后端 未结 7 1793
一整个雨季
一整个雨季 2021-01-01 23:48

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

    int halfWidth = driver.manage().window().getSize().width / 2;
    int screenH         


        
相关标签:
7条回答
  • 2021-01-02 00:15

    This code will help in bringing up the Control center, while you are in your app, you can perform all the operations which are available in the Control Center

    new TouchAction(DriverConfig.getInstance().getDriver()).press(point(250, 735)).waitAction(waitOptions(Duration.ofSeconds(3))).moveTo(point(250, -460)).release()
                            .perform();
    
    0 讨论(0)
提交回复
热议问题