webdriverio: [๐ฅ Breaking] Remove the `devtools` package as it requires a lot of maintenance and has no real value anymore
The devtools package has been used to automate WebdriverIO through Puppeteer. Back in the days this was useful because Puppeteer helped with setting up Chrome. Today this is done by WebdriverIO and there is no real value anymore to run automation through CDP rather than WebDriver. In fact there are a lot of bugs where the expected automated behavior was not met due to CDP specifics that we were never able to fix e.g. switching windows and run commands in them.
Moving on it makes most sense to remove this capability and force users to use WebDriver. We will use the devtools package for a different project.
This is a v9 task and pull requests should be raised against the v9 branch. Join the ๐-contribute channel on Discord if you are interested to join us in this effort.
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 19 (12 by maintainers)
Commits related to this issue
- chore(devtools): - Update website for AutomationProtocols.md and devtools/README.md Contributes to: #11860 Signed-off-by: Georgios Romanas gromanas@gmail.com — committed to gromanas/webdriverio by gromanas 5 months ago
- chore(devtools): - Update website for AutomationProtocols.md, Config and Options.ts with a deprecation warning Contributes to: #11860 Signed-off-by: Georgios Romanas gromanas@gmail.com — committed to gromanas/webdriverio by gromanas 5 months ago
- chore(devtools): - Fix typo on Options.ts Contributes to: #11860 Signed-off-by: Georgios Romanas gromanas@gmail.com — committed to gromanas/webdriverio by gromanas 5 months ago
- chore(devtools): - Fix text on packages/devtools/README.md Contributes to: #11860 Signed-off-by: Georgios Romanas gromanas@gmail.com — committed to gromanas/webdriverio by gromanas 5 months ago
- chore(devtools): - Change text as per comment on Options.md Contributes to: #11860 Signed-off-by: Georgios Romanas gromanas@gmail.com — committed to gromanas/webdriverio by gromanas 5 months ago
- chore(devtools): (#12072) * chore(devtools): - Update website for AutomationProtocols.md and devtools/README.md Contributes to: #11860 Signed-off-by: Georgios Romanas gromanas@gmail.com * U... — committed to webdriverio/webdriverio by gromanas 5 months ago
Join our Discord server and ask away ๐
This currently does not seem to be supported by the protocol but is something we can implement in WebdriverIO via script injection. ~I will create a feature request for this.~ An issue for this was created some time ago: #5911
The idea of WebdriverIO is that all commands work the same way in all browser. Unfortunately as browser adopt the new Bidi standard, we have different progress on certain APIs which will hopefully resolve itself some day. In the past we enabled these features by using Chrome DevTools (which only works for Chrome and Edge in most cases) but with Bidi we move away from that. That said, network interception will work the same way across browser once these features land. I am currently running interception tests successfully in Canary and I expect this to work in FF Nightly soon as well. I canโt speak about Safari, except that they plan to implement it.
You can already use v9 today using the
@nexttag. As we arenโt as careful shipping breaking changes I recommend maybe pin the version to ensure your tests are stable.Please make two separate PRs:
devtools-> PR againstmainbranchdevtoolspackage -> PR againstv9branch@gromanas thanks for picking this up. Can you do me a favor and also raise a PR against
mainto add a deprecation notice to thedevtoolspackage and to its driver, so people will know, it will be removed. Thank you!This (hopefully) will be my first contribution to wdio. If it is ok I want to give a try on this.