You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: retrieve commands and execute methods from active extensions (#2414)
* chore: move static commands list to own file
* chore: pass generateCommandNotes as prop
* only show static commands list if there is no method map support
* add tab switcher for dynamic commands grid
* add UI for rendering command/method buttons
* filter empty values
* do not render collapses if only one available
* also filter execute methods with no content
* remove hardcoded input value types, try to detect them
* convert static commands list to use a format compatible with endpoint result
also remove handling for notes and driver-specific command exclusion
* store pending command in react hooks instead of redux
* dynamic execute methods are now working
* dynamic commands (with matching names) are working
* filter execute methods before saving them
* improve execute method filtering and add tests
* add filtering for standard commands - full map WIP
* add full map of supported commands
* commands and execute methods are both working
* rename property for clarity
* extract parameters from paths for applicable commands
* add element commands to driver, to allow calling them as commands
* remove driver dependency for filterAvailableCommands
* add unit tests for filterAvailableCommands
* add support for required attribute
* add support for deprecated attribute
* add support for info attribute
* add descriptions for both tabs
* move CommandResultModal to Commands component
* split runCommand into two methods for clarity
* store command result in react hooks instead of redux
* refactor MethodMapCommandsList components
* add searchbar for dynamic method map
* combine all commands in one list & support plugins
* reduce sluggishness when entering command parameter values
* simplify handling for special methods
* add extra handling for certain commands
* adjust tab descriptions
* update deprecated command background in light mode
* update commands documentation
* update types
* run prettier
* add a few more unit tests
* add extra handling for printPage
* improve test for filtering out unsupported commands
* add back stopRecordingScreen
* use a map for handling mismatching commands
* fix destructuring
* add some memoization
* add various workarounds for antd performance issues
* fix lint
* use useRef for full command lists
* remove unneeded cancel button
* make parameter input smoother
* remove isMemo due to react compiler
* speed up method filtering by avoiding dynamic toPairs calls
* simplify table to row/col
* ensure linebreaks for long method names
* fix css
* update translation strings
* update docs
* handle edge case for overrides
* tune previous edge case handling
* address copilot comments
* update translation string
* define local constants for method names
* address comments in Commands component
* address comments in commands tab utils
* address comments in commands unit test file
* label args for executeScript as optional
* address comments
* update docs image due to updated texts
"copyResultToClipboard": "Copy Result to Clipboard",
322
322
"Property": "Property",
323
-
"noCapsFound": "No session capabilities found. Please use the Capability Builder to edit, add, and save your capability set. Refer to the tutorial at {{url}}"
323
+
"noCapsFound": "No session capabilities found. Please use the Capability Builder to edit, add, and save your capability set. Refer to the tutorial at {{url}}",
324
+
"executeMethods": "Execute Methods",
325
+
"dynamicCommandsDescription": "Run commands supported by the currently active driver and plugin(s). Note that some commands may only work in specific contexts. Any commands not supported by WebdriverIO are not included in this list.",
326
+
"dynamicExecuteMethodsDescription": "Run any execute method supported by the currently active driver and plugin(s).",
0 commit comments