mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-11 17:50:01 -06:00
* feat: implement BiDi automation client base (without full extension cutover). [run ci] * chore: implement suggestions from code review. [run ci] * update error text to be in line with documentation * address comments from code review * address comments from code review * make bidi, cdp, and both active protocols object enumerations to make the code easier to read * address additional comments from code review * fix errors from refactor * update firefox warning
Extension
This is the WebExtension responsible for automating the browser
Developing
Watching
yarn workspace @packages/extension watch
Building
yarn workspace @packages/extension build
Testing
yarn workspace @packages/extension test
yarn workspace @packages/extension test-watch
yarn workspace @packages/extension test-debug
Debugging
In Chrome
- Open Chrome
- Go into Extensions (
chrome://extensions) - Check Developer Mode (top right of screen)
- Click Load unpacked extension... (top left of screen)
- Choose packages/extension/dist directory (v2)
- Click background page to debug
background.js(inspect viewsbackground page) - Click Reload (⌘R) to pull in changes to
manifest.json
In Firefox
- Launch Firefox via
cypress open. - Once Firefox is open, open an new tab and navigate to
about:debugging. - Click the
This Firefoxnavigation item on the left hand navigation pane and locate theCypressextension underTemporary Extensions. - Click
inspect. A console window should now appear in a separate window. - Close the
about:debuggingtab. - In the newly spawned console window, you should be able to see
background.jsin theDebuggertab. - Set breakpoints as needed to inspect what code you are trying to debug. Happy debugging!