Conversation
chore: update versions
chore: update versions
chore: update versions
chore: update versions
chore: update versions
|
I like that you took care of this. But I personally used Webdriver for very valuable e2e testing. But also hard to configure correctly. I think you don't count on E2E tests here anymore, right? |
|
That's interesting to know! I mainly made these changes to get Vitest to work over Chrome Devtools Protocol, which is now working in https://github.com/bubblydoo/uxp-toolkit/tree/main/packages/vitest-pool-uxp. |
|
It is right here. In the templates you are about to remove as well: packages/uxp-templates-pack/uxp-wdio-automation-template/sample-tests/specs/starterScript.js It uses wdio... there is not to much of documentation it was difficult to figure out how it actually works. Adobe uses robot.js as dependency which also uses C++ node library that can take control over your mouse and keyboard for more complex UI tests. |
|
Otherwise, I was playing with idea to have some CDP -> DAP -> CDP adapter. So it would be possible to debug in VSCode rather than UDT. https://microsoft.github.io/debug-adapter-protocol/ |
|
Looking at wdio.conf.js, I think this "debuggerAddress" is also just a CDP address, so I think this should not be too hard to get to work. In the Vitest integration I made sure debugging works, e.g. inside |
|
Otherwise, if you look under the hood of UDT inside it looks more or less like in this repo. They just packed it into .asar archive including source code and all node modules. Therefore size +1GB :-D |
|
Yes I also noticed it, but it's not really needed to use it in my opinion and that's why I deleted it. If you run the |
|
I'm not sure if they are the same but they look similar. I'm not very sure why there are all these types of urls: |
|
Back in the old days of UXP you could add debug file in same directory as your manifest file and specify port number for built-in Chrome Node.js debugger that would connect via CDP. This was before UDT existed. Later somewhere around PS 2023-2024 it broke. |
|
I did some more research on webdriver and it seems difficult to handle properly. It's a big protocol that is quite different from CDP, you can also maximize windows, etc. The existing package Adobe created was more of a bridge to CDP, and didn't support a lot of things and seems a bit hacky to me. |
|
I made a The difficulty is that UXP CDP does not support pages etc, so those requests are intercepted. Also Runtime.evaluate with |



If you want to use these packages, they are published to npm:
@adobe-fixed-uxp/uxp-devtools-helper,@adobe-fixed-uxp/uxp-devtools-cliand@adobe-fixed-uxp/uxp-devtools-core.Changes in this PR:
I use this branch in https://github.com/bubblydoo/uxp-toolkit
e.g. you can now run:
# Opens devtools in Chrome pnpm --allow-build=@adobe-fixed-uxp/uxp-devtools-helper dlx @bubblydoo/uxp-cli open-devtoolsor
# Starts an MCP server for Photoshop pnpm --allow-build=@adobe-fixed-uxp/uxp-devtools-helper dlx @bubblydoo/photoshop-mcpI already opened this PR once in 2023, but now I did it a bit more thorough (with a lot of Claude help), see #10