Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
UI hierarchy inspector for Mobile App, supporting Android
, iOS
, and HarmonyOS NEXT
.
Its features include:
This project is developed using FastAPI and Vue. It starts locally and displays UI hierarchy through web browser.
pip3 install -U uiviewer
Run the following command on the terminal. (default port 8000
)
uiviewer
# or
python3 -m uiviewer
INFO: Started server process [46814]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:55080 - "GET / HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:55080 - "GET /static/index.html HTTP/1.1" 200 OK
INFO: 127.0.0.1:55080 - "GET /static/css/style.css HTTP/1.1" 200 OK
INFO: 127.0.0.1:55080 - "GET /static/js/index.js HTTP/1.1" 200 OK
INFO: 127.0.0.1:55080 - "GET /static/js/api.js HTTP/1.1" 200 OK
INFO: 127.0.0.1:55082 - "GET /static/js/utils.js HTTP/1.1" 200 OK
INFO: 127.0.0.1:55082 - "GET /static/js/config.js HTTP/1.1" 200 OK
INFO: 127.0.0.1:55082 - "GET /version HTTP/1.1" 200 OK
And then open the browser to http://localhost:8000
You can also customize port to start the service.
uiviewer -p <PORT>
# or
python3 -m uiviewer -p <PORT>
If you need to connect to a remote HDC Server or ADB server for remote device debugging, you must set the required environment variables before starting uiviewer.
HarmonyOS
export HDC_SERVER_HOST=127.0.0.1 # Replace with the remote host
export HDC_SERVER_PORT=8710
Android
export ANDROID_ADB_SERVER_HOST=127.0.0.1 # Replace with the remote host
export ANDROID_ADB_SERVER_PORT=5037
Remove Environment Variables, To unset the environment variables:
unset HDC_SERVER_HOST
unset HDC_SERVER_PORT
unset ANDROID_ADB_SERVER_HOST
unset ANDROID_ADB_SERVER_PORT
If you are using a virtual environment, please make sure to activate it before running the command.
On iOS, please ensure that WDA is successfully started and wda port forwarding is successful in advance.
xcode
or tidevice
or go-ios
to launch wda.tidevice xctest -B <wda_bundle_id>
tidevice
or iproxy
to forward the wda port,and keep it running.tidevice relay 8100 8100
http://localhost:8100/status
, return like this:{
"value": {
"build": {
"productBundleIdentifier": "com.facebook.WebDriverAgentRunner",
"time": "Mar 25 2024 15:17:30"
},
...
"state": "success",
"ready": true
},
"sessionId": null
}
wdaUrl
in the web page, such as http://localhost:8100
On iOS,WDA can easily freeze when dumping high UI hierarchy. You can reduce the maxDepth
on the web page. The default is 30.
HarmonyOS
Android
iOS
FAQs
UI hierarchy visualization tool, supporting Android, iOS, HarmonyOS NEXT.
We found that uiviewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.