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
When I use relative locators in an assert I expect to see friendly log messages that can help me understand what element was used in the command or assertion, but instead I get returned a large object that is hard to read at a glance in the logs.
In other words, I'd like to see something like this: Expected element <By.css('input.rcpInput') below element with text 'Function Category'> to have value equal to '(1) File Notes')
but instead I get output like this
√ Expected element <RelativeBy({"relative":{"root":{"css selector":"input.rcbInput"},"filters":[{"kind":"below","args":[{"driver_":{"session_":{},"executor_":{"customCommands_":{},"log_":{"name_":"driver.http.Executor","level_":null,"parent_":{"name_":"driver.http","level_":null,"parent_":{"name_":"driver","level_":null,"parent_":{"name_":"","level_":{"name_":"OFF","value_":null},"parent_":null,"handlers_":null},"handlers_":null},"handlers_":null},"handlers_":null},"w3c":true},"fileDetector_":null,"authenticatorId_":null,"pinnedScripts_":{}},"id_":{},"log_":{"name_":"driver","level_":null,"parent_":{"name_":"","level_":{"name_":"OFF","value_":null},"parent_":null,"handlers_":null},"handlers_":null}}]}]}})> to have value equal: "(1) File Notes" (25ms)
Description of the bug/issue
When I use relative locators in an assert I expect to see friendly log messages that can help me understand what element was used in the command or assertion, but instead I get returned a large object that is hard to read at a glance in the logs.
In other words, I'd like to see something like this:
Expected element <By.css('input.rcpInput') below element with text 'Function Category'> to have value equal to '(1) File Notes')
but instead I get output like this
Associated command
Steps to reproduce
Run a test with a relative locator and findByText item combined in an expect
Observe console ouput
Sample test
Command to run
Verbose Output
Nightwatch Configuration
Nightwatch.js Version
3.6.3
Node Version
20
Browser
Chrome
Operating System
Windows 11
Additional Information
No response
The text was updated successfully, but these errors were encountered: