简体   繁体   English

UI自动化中的应用切换

[英]App switching in UI Automation

Is there a way to switch between applications using UI Automation in instruments?. 有没有一种方法可以在仪器中使用UI自动化在应用程序之间切换? And also to change wifi settings using the same? 还要使用相同的设置更改wifi设置吗? Any help will be greatly appreciated. 任何帮助将不胜感激。

There is not currently a way to change connection settings. 当前没有更改连接设置的方法。 Although, technically if you are using the simulator you could launch an external script using UIAHost.performTaskWithPathArgumentsTimeout to change the host computers internet settings. 尽管从技术上讲,如果您使用的是模拟器,则可以使用UIAHost.performTaskWithPathArgumentsTimeout启动外部脚本来更改主机的Internet设置。

Switching between apps is also not possible for the reason that they don't want you controlling apps that aren't yours. 由于不希望您控制非您自己的应用程序,因此无法在应用程序之间进行切换。 However, if you own both apps I suppose it'd be possible to launch an external script to launch one app in instruments and once that test is over launch the second one. 但是,如果您同时拥有这两个应用程序,我想可以启动一个外部脚本来在乐器中启动一个应用程序,并且一旦测试结束,便可以启动第二个应用程序。 This would only work in some cases though. 不过,这仅在某些情况下有效。

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

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