Comments (6)
Does "manually" mean like https://appium.github.io/appium-xcuitest-driver/5.12/run-preinstalled-wda/ ? Or with xcodebuild
?
from webdriveragent.
i mean, like the app icon is on the home screen, press it, and see the automation running thing.
from webdriveragent.
Then, it looks like the behavior changed in iOS 17. I don't recall in the past, but I guess lower iOS versions could launch by tapping the icon. At least it is not by WDA, I guess it is XCTest process related by iOS.
from webdriveragent.
i mean, like the app icon is on the home screen, press it, and see the automation running thing.
did you achieve it? by tap icon of wda to launch it ?
from webdriveragent.
Fortunately, I found a way to launch WDA on IOS by clicking on the icon after installing WDA.
Refer to the following links:
https://blog.csdn.net/boildoctor/article/details/123588999
https://zhuanlan.zhihu.com/p/673319266
1)deploy wda to IOS by xcode, trust the phone device
2)Build wda by xcode, and remember the output path of build.
3)do
`
$ xcodebuild build-for-testing -scheme WebDriverAgentRunner -sdk iphoneos -configuration Release -derivedDataPath /tmp/derivedDataPath
$ cd /tmp/derivedDataPath
$ cd Build/Products/Release-iphoneos # path might be different
Created folder Payload
and put .app
into it
then compressed to zip, change extention name to .ipa
. That's all.
$ mkdir Payload && cp -r .app Payload
`
4) delete XC* folder in WebDriverAgentRunner-Runner.app/Frameworks
5) Reconstructing Signature Information Refer the https://blog.csdn.net/boildoctor/article/details/123588999
I use the '方法2', Finally, a message indicating that the signature is being replaced is obtained.
6) use 'zip -r WDA.ipa Payload' to deploy wda, and install WDA.ipa to iphone
After the preceding steps are performed, you can directly click the wda icon on the mobile phone to start the wda.
from webdriveragent.
Solution found, didn't see comment above and it's slightly different so i'm writting it here
(This is for Real Device ios 17)
1- Download at least webdriver version 8.5.1
2- Open it on XCode,
3- Sign framework and WebDriverAgentRunner with a valid certificate
4- Build WebDriverAgentRunner on your phone
5- Open the build folder, go to products > debug-iphoneios
6- right click app, Show package contents > go to Framework folder
7- inside delete all folders that start with XC
8- Install app by opening xcode devices windows and then dragging the app from the build folder
9- if it's for automated testing like mine was, on capabilities write appium: usePreinstalledWDA: 'true'
Done, now you can tap the test app and it begins automation.
Works for running tests with VPN on.
from webdriveragent.
Related Issues (20)
- I have no issues running WDA directly through Xcode on a real device. Whether started by clicking or through Sib, it works fine. However, after packaging WDA into an IPA file, installing it via Sib, and then launching WDA, it crashes. It doesn't happen every time, but the occurrence probability is quite high. HOT 2
- "Failed to find Matching Arch for input file" HOT 1
- Enterprise certificate packaging error HOT 1
- Can't chose simulator's XctestrunFile created by arm64 PC HOT 1
- Identifier '_XCTSetApplicationStateTimeout' is reserved because it starts with '_' followed by a capital letter HOT 11
- Mixing declarations and code is incompatible with standards before C99 HOT 1
- Iphone14,ios17.3,v5.15.8 Touch WebDriverAgent icon then crash。 HOT 3
- WebDriverAgentRunner HOT 2
- WDA crash when call screenshot API HOT 3
- build failure in new update 14.4 HOT 1
- window/size sometimes returns an incorrect size HOT 7
- Testing failed: No visible @interface for 'XCUIDevice' declares the selector 'pressButton:' Use of undeclared identifier 'XCUIDeviceButtonHome' Testing cancelled because the build failed. HOT 14
- 运行WebDriverAgent后出现的Automation Running hold both volume buttons to stop 提示蒙层能否去掉 HOT 2
- XCUIElementTypeAlert cannot be found HOT 1
- Expect outside of acceptAlertButtonSelector button will not automatically be click
- After installing the latest WebDriverAgent (WDA) on an iOS 17.4.1 system, the device can be tested using Xcode successfully. However, once the device is unplugged and I attempt to open WDA manually, it crashes. Has anyone experienced this problem? Assistance would be appreciated. HOT 4
- I want to keep the current screen brightness after starting wda. Is this possible? Currently, wda does not run after opening it, and the screen will automatically dim after a while. HOT 5
- IOS 17 real device, can't launch wda HOT 8
- The cloud real machine function flashes down
- Can I support devices with ios 9.0? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdriveragent.