GithubHelp home page GithubHelp logo

Comments (6)

KazuCocoa avatar KazuCocoa commented on August 12, 2024

Does "manually" mean like https://appium.github.io/appium-xcuitest-driver/5.12/run-preinstalled-wda/ ? Or with xcodebuild?

from webdriveragent.

PBartolM avatar PBartolM commented on August 12, 2024

i mean, like the app icon is on the home screen, press it, and see the automation running thing.

from webdriveragent.

KazuCocoa avatar KazuCocoa commented on August 12, 2024

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.

HaoWShi avatar HaoWShi commented on August 12, 2024

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.

HaoWShi avatar HaoWShi commented on August 12, 2024

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.

PBartolM avatar PBartolM commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.