Release notes
v3.7.0
Jul 24, 2024What's Changed
- Fix selectElement example test. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4233
- Update ws dependency by @AutomatedTester in https://github.com/nightwatchjs/nightwatch/pull/4235
- Add .check and .uncheck commands for immutable checkbox operations by @reallymello in https://github.com/nightwatchjs/nightwatch/pull/4232
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.6.4...v3.7.0
v3.6.4
Jul 9, 2024What's Changed
- Fix error in Cucumber when session is closed in a test case itself. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4209
- Fix page object demo examples in API docs. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4210
- Fixed W3C WebDriver Spec links in API docs. by @Halim-Shams in https://github.com/nightwatchjs/nightwatch/pull/4166
- Small modifications in API docs for updating value. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4213
- Fix API doc for
setPassword
command. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4225 - Fix selector object doc links in API docs. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4226
- Allow to enter the DEBUG mode from the pause command. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4224
New Contributors
- @Halim-Shams made their first contribution in https://github.com/nightwatchjs/nightwatch/pull/4166
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.6.3...v3.6.4
v3.6.3
May 22, 2024What's Changed
- Bump selenium-webdriver to 4.21.0 by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4207
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.6.2...v3.6.3
v3.6.2
May 10, 2024What's Changed
Fixes
- Fix command args showing as '[object Object]' in reporter. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4195
- Fix test not aborting when waitFor commands used with async/await. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4196
Dependency updates
- Bump ejs to 3.1.10 by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4204
- chore: updating mocha from 10.2.0 -> 10.3.0 to remove CVE-2022-3517 by @athammer in https://github.com/nightwatchjs/nightwatch/pull/4199
- Bump selenium-webdriver to 4.20.0 by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4206
New Contributors
- @athammer made their first contribution in https://github.com/nightwatchjs/nightwatch/pull/4199
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.6.1...v3.6.2
v3.6.1
Apr 22, 2024What's Changed
Enhancements
- Add fallback for clear command. by @FireNdIce3 in https://github.com/nightwatchjs/nightwatch/pull/4035
(This also impacts the
setValue
andupdateValue
commands which clears the field before sending new values.) - Use
NoSuchElementError
when element not found in new Element API. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4193
Fixes
- Fix
debug()
allowing only one command run in async/await mode. by @chikara1608 in https://github.com/nightwatchjs/nightwatch/pull/4139 - Fix help messages for iOS errors. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4189
- Keep error's original messages for NoSuchElementError. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4191
- Update Page Object tests to make sure invalid Page Objects elements are handled by @AutomatedTester in https://github.com/nightwatchjs/nightwatch/pull/4187
New aliases in new Element API (for backwards compatibility)
.ariaRole()
as alias for.getAriaRole()
by @Sajantoor in https://github.com/nightwatchjs/nightwatch/pull/4159.text()
as alias for.getText()
by @Ayush-Vish in https://github.com/nightwatchjs/nightwatch/pull/4180.prop()
as alias for.getProperty()
by @Ayush-Vish in https://github.com/nightwatchjs/nightwatch/pull/4174.accessibleName()
as alias for.getAccessibleName()
by @Ayush-Vish in https://github.com/nightwatchjs/nightwatch/pull/4178.tagname()
as alias for.getTagName()
by @Ayush-Vish in https://github.com/nightwatchjs/nightwatch/pull/4176.css()
and.getCssValue()
as aliases for.getCssProperty()
by @Ayush-Vish in https://github.com/nightwatchjs/nightwatch/pull/4168.attr()
and.attribute()
as alias for.getAttribute()
by @Ayush-Vish in https://github.com/nightwatchjs/nightwatch/pull/4172- Added aliases for
.find()
and.findAll()
commands in new Element API by @AritraLeo in https://github.com/nightwatchjs/nightwatch/pull/4130
New Contributors
- @Sajantoor made their first contribution in https://github.com/nightwatchjs/nightwatch/pull/4159
- @Ayush-Vish made their first contribution in https://github.com/nightwatchjs/nightwatch/pull/4180
- @AritraLeo made their first contribution in https://github.com/nightwatchjs/nightwatch/pull/4130
- @FireNdIce3 made their first contribution in https://github.com/nightwatchjs/nightwatch/pull/4035
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.6.0...v3.6.1
v3.6.0
Apr 4, 2024What's Changed
- Add
rect()
as alias forgetRect()
command. by @dikwickley in https://github.com/nightwatchjs/nightwatch/pull/4128 - Fix
waitUntil
not working with async/await. by @chikara1608 in https://github.com/nightwatchjs/nightwatch/pull/4123 - Fix bug that aborts test when waitUntil throws error. #4157 by @chikara1608 in https://github.com/nightwatchjs/nightwatch/pull/4161
New Contributors
- @chikara1608 made their first contribution in https://github.com/nightwatchjs/nightwatch/pull/4123
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.5.0...v3.6.0
v3.5.0
Mar 15, 2024What's Changed
- Add actionable error message for
TimeoutError
in hooks. by @dikwickley in https://github.com/nightwatchjs/nightwatch/pull/4053 - Add missing
isSelected
command to new Element API. by @dikwickley in https://github.com/nightwatchjs/nightwatch/pull/4038 - Added missing
isEnabled
command in new Element API by @subhajit20 in https://github.com/nightwatchjs/nightwatch/pull/4041 - Refactor commands in README. by @konavivekramakrishna in https://github.com/nightwatchjs/nightwatch/pull/4076
- Hide password values from raw HTTP logs. by @dikwickley in https://github.com/nightwatchjs/nightwatch/pull/4066
- Fix JSDoc example for getText command. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/4043
- Added missing
isVisible
command in new Element API by @subhajit20 in https://github.com/nightwatchjs/nightwatch/pull/4039 - Added
isDisplayed()
as alias toisVisible()
by @uditrajput03 in https://github.com/nightwatchjs/nightwatch/pull/4107 - fixed
takeScreenshot
example by @dikwickley in https://github.com/nightwatchjs/nightwatch/pull/4121 - allow parallel envs with cucumber by @AutomatedTester in https://github.com/nightwatchjs/nightwatch/pull/4095
New Contributors
- @dikwickley made their first contribution in https://github.com/nightwatchjs/nightwatch/pull/4053
- @subhajit20 made their first contribution in https://github.com/nightwatchjs/nightwatch/pull/4041
- @konavivekramakrishna made their first contribution in https://github.com/nightwatchjs/nightwatch/pull/4076
- @uditrajput03 made their first contribution in https://github.com/nightwatchjs/nightwatch/pull/4107
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.4.1...v3.5.0
v3.4.1
Feb 16, 2024What's Changed
- Warn about two
describe()
s in a single testsuite. by @garg3133 in #4011 - Fix error while exiting Nightwatch using Ctrl+C. by @garg3133 in #4013
- deps: Update
piscina
dependency tov4.3.1
. by @garg3133 in #4020 - Send
POST_SESSION_EVENT
with capabilities on session creation. by @garg3133 in #4024 - Add appium reset command by @AutomatedTester in #4019
- Disable HTML reporter in Cucumber. by @garg3133 in #4025
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.4.0...v3.4.1
v3.4.0
Jan 29, 2024What's Changed
Fixed and improvements:
- Fixed #3998 – cannot set custom session status for retried test when using Browserstack, by Priyansh Garg in #3999
- Fixed #3990 – CDP connection not getting reset across sessions when using Selenium, by Priyansh Garg in #3994
- Fixed #3989 – Unable to fetch elements with reference to a ShadowRoot, by Priyansh Garg in #3992
- Fixed #4003 – Replace per-method packages with the main
lodash
package, by Priyansh Garg in #4005 - Fixed #4007 – add
parallel_process_delay
in worker threads by @gravityvi in #4007 - Fixed test hooks giving TypeScript error with
NightwatchBrowser
, by Priyansh Garg in #4004 - Added extended types for
waitFor
commands, by Priyansh Garg in #3986
Dependency updates:
- Upgraded Selenium to 4.16 by David Burns in #4008. This upgrade brings improved stability, new features, and bug fixes, enhancing the overall testing capabilities with Nightwatch.
- Updated
nightwatch-axe-verbose
dependency to enhance accessibility testing features, including improved axe-core integration and support for advanced configurations. by Priyansh Garg in #3993
Full Changelog
v3.3.8
Jan 10, 2024What's Changed
- Fix types for Nightwatch settings/config file. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/3876
- Update dependencies. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/3985
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.3.7...v3.3.8
v3.3.7
Dec 29, 2023- Added – support for defining a custom return function for custom command fe9a01
v3.3.5
Dec 14, 2023What's Changed
- Fixed process stalling for 4 mins after test run in Node v20+. by @garg3133 in #3976
- Fixed #3639 waitFor commands not retrying for stale elements. by @garg3133 in #3978
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.3.4...v3.3.5
v3.3.4
Dec 11, 2023What's Changed
v3.3.3
Dec 7, 2023What's Changed
- add check for browserstack turboscale urls by @nikhlagrwl in https://github.com/nightwatchjs/nightwatch/pull/3970
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.3.2...v3.3.3
v2.6.23
Dec 7, 2023What's Changed
- add support for browserstack turboscale urls by @nikhlagrwl in https://github.com/nightwatchjs/nightwatch/pull/3969
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v2.6.22...v2.6.23
v3.3.2
Nov 16, 2023What's Changed
- enable parallelism on any selenium host by @gravityvi in https://github.com/nightwatchjs/nightwatch/pull/3956
- improved the support for defining custom reporters via plugins
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.3.1...v3.3.2
v3.3.0
Nov 7, 2023What's Changed
Fixes
- Update the description of abortOnFailure for waitForElementVisible.js by @gravityvi in https://github.com/nightwatchjs/nightwatch/pull/3934
- remove upper bound for number of worker threads by @gravityvi in https://github.com/nightwatchjs/nightwatch/pull/3930
- remove postInstall step by @AutomatedTester in https://github.com/nightwatchjs/nightwatch/pull/3953
- enable worker threads for mobile while using cloud services by @gravityvi in https://github.com/nightwatchjs/nightwatch/pull/3954
Dependencies
- Update Selenium to 4.14 by @AutomatedTester in https://github.com/nightwatchjs/nightwatch/pull/3944
- chore: update dependencies by @AutomatedTester in https://github.com/nightwatchjs/nightwatch/pull/3943
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.2.1...v3.3.0
v3.2.1
Oct 5, 2023What's Changed
- CVE 2023 43646 by @AutomatedTester in https://github.com/nightwatchjs/nightwatch/pull/3925
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.2.0...v3.2.1
v3.2.0
Sep 27, 2023What's Changed
New Features
- add wait until present command by @gravityvi in https://github.com/nightwatchjs/nightwatch/pull/3897
- event setup for nightwatch hooks by @harshit-bs in https://github.com/nightwatchjs/nightwatch/pull/3706
Fixes
- Use correct settings parameter for trace by @swrdfish in https://github.com/nightwatchjs/nightwatch/pull/3890
- Allow
WebElement
as a possible selector in type declarations. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/3896 - run mocha on child process workers by @gravityvi in https://github.com/nightwatchjs/nightwatch/pull/3904
- add GitHub Actions in the list of supporting colors by @gravityvi in https://github.com/nightwatchjs/nightwatch/pull/3914
- remove color param from mocha cli runner tests by @gravityvi in https://github.com/nightwatchjs/nightwatch/pull/3919
- consider always match from desired capabilities by @gravityvi in https://github.com/nightwatchjs/nightwatch/pull/3907 (#3431)
- Pass settings object to global hooks while called from programatic api by @swrdfish in https://github.com/nightwatchjs/nightwatch/pull/3850 (#3849)
Dependency Updates
- bump to selenium 4.13 by @AutomatedTester in https://github.com/nightwatchjs/nightwatch/pull/3920
TypeScript Improvements
- Migrate utils modules to TS. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/3869
- Refactor utils modules before migrating to TS. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/3870
- Migrate lib/http files to TS. by @yashPratp983 in https://github.com/nightwatchjs/nightwatch/pull/3886
Build Improvements
- Fix eslint rules by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/3891
- Change file names for execute commands. by @garg3133 in https://github.com/nightwatchjs/nightwatch/pull/3898
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.1.3...v3.2.0
v2.6.22
Sep 27, 2023What's Changed
- Lifecycle event hooks support for v2 by @harshit-bs in https://github.com/nightwatchjs/nightwatch/pull/3817
Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v2.6.21...v2.6.22