简体   繁体   English

如何在ios中的UI自动化中重定向到设置/首选项

[英]How to redirect to settings/preferences in UI Automation in ios

为了测试我的应用程序我需要打开并关闭WIFI,蓝牙等。有一种方法去设置/首选项使用IOS中的UI自动化打开/关闭我的WiFi。

No, you have to perform an external task, use performTaskWithPathArgumentsTimeout . 不,您必须执行外部任务,使用performTaskWithPathArgumentsTimeout

With a simple command you can switch off the network like: 使用简单的命令,您可以关闭网络,如:

ifconfig eth0 down

Use this as parameter. 将其用作参数。 For a specific process I recommend to use TCPBlock . 对于特定的进程,我建议使用TCPBlock (Call tcpblock -a appname .) (调用tcpblock -a appname 。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM