發行說明
v3.7.0
2024 年 7 月 24 日變更
- 修復 selectElement 範例測試。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4233
- 更新 ws 相依性,由 @AutomatedTester 在 https://github.com/nightwatchjs/nightwatch/pull/4235
- 新增 .check 和 .uncheck 指令,用於不可變的核取方塊操作,由 @reallymello 在 https://github.com/nightwatchjs/nightwatch/pull/4232
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.6.4...v3.7.0
v3.6.4
2024 年 7 月 9 日變更
- 修復在測試案例本身中關閉 session 時 Cucumber 中發生的錯誤。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4209
- 修復 API 文件中的頁面物件示範範例。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4210
- 修復 API 文件中的 W3C WebDriver 規格連結。由 @Halim-Shams 在 https://github.com/nightwatchjs/nightwatch/pull/4166
- API 文件中針對更新值進行的小修改。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4213
- 修復
setPassword
指令的 API 文件。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4225 - 修復 API 文件中的選擇器物件文件連結。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4226
- 允許從 pause 指令進入 DEBUG 模式。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4224
新的貢獻者
- @Halim-Shams 在 https://github.com/nightwatchjs/nightwatch/pull/4166 中做出了他們的第一次貢獻
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.6.3...v3.6.4
v3.6.3
2024 年 5 月 22 日變更
- 將 selenium-webdriver 更新至 4.21.0,由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4207
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.6.2...v3.6.3
v3.6.2
2024 年 5 月 10 日變更
修復
- 修復指令引數在報告器中顯示為 '[object Object]' 的問題。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4195
- 修復搭配 async/await 使用 waitFor 指令時測試未中止的問題。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4196
相依性更新
- 將 ejs 更新至 3.1.10,由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4204
- chore: 將 mocha 從 10.2.0 -> 10.3.0 更新以移除 CVE-2022-3517,由 @athammer 在 https://github.com/nightwatchjs/nightwatch/pull/4199
- 將 selenium-webdriver 更新至 4.20.0,由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4206
新的貢獻者
- @athammer 在 https://github.com/nightwatchjs/nightwatch/pull/4199 中做出了他們的第一次貢獻
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.6.1...v3.6.2
v3.6.1
2024 年 4 月 22 日變更
增強功能
- 為 clear 指令新增回退機制。由 @FireNdIce3 在 https://github.com/nightwatchjs/nightwatch/pull/4035(這也會影響
setValue
和updateValue
指令,這些指令會在傳送新值之前清除欄位。) - 當在新的 Element API 中找不到元素時,使用
NoSuchElementError
。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4193
修復
- 修復
debug()
只允許在 async/await 模式中執行一個指令的問題。由 @chikara1608 在 https://github.com/nightwatchjs/nightwatch/pull/4139 - 修復 iOS 錯誤的說明訊息。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4189
- 為 NoSuchElementError 保留錯誤的原始訊息。由 @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4191
- 更新頁面物件測試,以確保由 @AutomatedTester 在 https://github.com/nightwatchjs/nightwatch/pull/4187 處理無效的頁面物件元素
新的 Element API 中的新別名(用於向後相容性)
.ariaRole()
作為.getAriaRole()
的別名,由 @Sajantoor 在 https://github.com/nightwatchjs/nightwatch/pull/4159.text()
作為.getText()
的別名,由 @Ayush-Vish 在 https://github.com/nightwatchjs/nightwatch/pull/4180.prop()
作為.getProperty()
的別名,由 @Ayush-Vish 在 https://github.com/nightwatchjs/nightwatch/pull/4174.accessibleName()
作為.getAccessibleName()
的別名,由 @Ayush-Vish 在 https://github.com/nightwatchjs/nightwatch/pull/4178.tagname()
作為.getTagName()
的別名,由 @Ayush-Vish 在 https://github.com/nightwatchjs/nightwatch/pull/4176.css()
和.getCssValue()
作為.getCssProperty()
的別名,由 @Ayush-Vish 在 https://github.com/nightwatchjs/nightwatch/pull/4168.attr()
和.attribute()
作為.getAttribute()
的別名,由 @Ayush-Vish 在 https://github.com/nightwatchjs/nightwatch/pull/4172- 在新的 Element API 中為
.find()
和.findAll()
指令新增別名,由 @AritraLeo 在 https://github.com/nightwatchjs/nightwatch/pull/4130
新的貢獻者
- @Sajantoor 在 https://github.com/nightwatchjs/nightwatch/pull/4159 中做出了他們的第一次貢獻
- @Ayush-Vish 在 https://github.com/nightwatchjs/nightwatch/pull/4180 中做出了他們的第一次貢獻
- @AritraLeo 在 https://github.com/nightwatchjs/nightwatch/pull/4130 中做出了他們的第一次貢獻
- @FireNdIce3 在 https://github.com/nightwatchjs/nightwatch/pull/4035 中做出了他們的第一次貢獻
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.6.0...v3.6.1
v3.6.0
2024 年 4 月 4 日變更
- 新增
rect()
作為getRect()
指令的別名。由 @dikwickley 在 https://github.com/nightwatchjs/nightwatch/pull/4128 - 修復
waitUntil
無法與 async/await 搭配運作的問題。由 @chikara1608 在 https://github.com/nightwatchjs/nightwatch/pull/4123 - 修復當 waitUntil 擲回錯誤時中止測試的錯誤。#4157 由 @chikara1608 在 https://github.com/nightwatchjs/nightwatch/pull/4161
新的貢獻者
- @chikara1608 在 https://github.com/nightwatchjs/nightwatch/pull/4123 中做出了他們的首次貢獻
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.5.0...v3.6.0
v3.5.0
2024年3月15日變更
- 為 hooks 中的
TimeoutError
新增可操作的錯誤訊息。by @dikwickley 在 https://github.com/nightwatchjs/nightwatch/pull/4053 - 為新的 Element API 新增遺失的
isSelected
命令。by @dikwickley 在 https://github.com/nightwatchjs/nightwatch/pull/4038 - 在新的 Element API 中新增遺失的
isEnabled
命令 by @subhajit20 在 https://github.com/nightwatchjs/nightwatch/pull/4041 - 重構 README 中的命令。by @konavivekramakrishna 在 https://github.com/nightwatchjs/nightwatch/pull/4076
- 從原始 HTTP 記錄中隱藏密碼值。by @dikwickley 在 https://github.com/nightwatchjs/nightwatch/pull/4066
- 修正 getText 命令的 JSDoc 範例。by @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/4043
- 在新的 Element API 中新增遺失的
isVisible
命令 by @subhajit20 在 https://github.com/nightwatchjs/nightwatch/pull/4039 - 新增
isDisplayed()
作為isVisible()
的別名 by @uditrajput03 在 https://github.com/nightwatchjs/nightwatch/pull/4107 - 修正
takeScreenshot
範例 by @dikwickley 在 https://github.com/nightwatchjs/nightwatch/pull/4121 - 允許 Cucumber 使用平行環境 by @AutomatedTester 在 https://github.com/nightwatchjs/nightwatch/pull/4095
新的貢獻者
- @dikwickley 在 https://github.com/nightwatchjs/nightwatch/pull/4053 中做出了他們的首次貢獻
- @subhajit20 在 https://github.com/nightwatchjs/nightwatch/pull/4041 中做出了他們的首次貢獻
- @konavivekramakrishna 在 https://github.com/nightwatchjs/nightwatch/pull/4076 中做出了他們的首次貢獻
- @uditrajput03 在 https://github.com/nightwatchjs/nightwatch/pull/4107 中做出了他們的首次貢獻
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.4.1...v3.5.0
v3.4.1
2024年2月16日變更
- 警告單個測試套件中有兩個
describe()
。by @garg3133 在 #4011 - 修正在使用 Ctrl+C 退出 Nightwatch 時發生的錯誤。by @garg3133 在 #4013
- deps: 將
piscina
依賴項更新至v4.3.1
。by @garg3133 在 #4020 - 在建立 session 時傳送帶有 capabilities 的
POST_SESSION_EVENT
。by @garg3133 在 #4024 - 新增 appium reset 命令 by @AutomatedTester 在 #4019
- 在 Cucumber 中停用 HTML 報告器。by @garg3133 在 #4025
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.4.0...v3.4.1
v3.4.0
2024年1月29日變更
已修正和改進
- 已修正 #3998 – 在使用 Browserstack 時,無法為重試的測試設定自訂 session 狀態,by Priyansh Garg 在 #3999
- 已修正 #3990 – 使用 Selenium 時,CDP 連線未跨 session 重置,by Priyansh Garg 在 #3994
- 已修正 #3989 – 無法參照 ShadowRoot 擷取元素,by Priyansh Garg 在 #3992
- 已修正 #4003 – 將每個方法的套件替換為主
lodash
套件,by Priyansh Garg 在 #4005 - 已修正 #4007 – 在 worker threads 中新增
parallel_process_delay
,by @gravityvi 在 #4007 - 已修正 測試 hooks 在使用
NightwatchBrowser
時發生 TypeScript 錯誤,by Priyansh Garg 在 #4004 - 已新增
waitFor
命令的擴充類型,by Priyansh Garg 在 #3986
相依性更新
- 已升級 Selenium 至 4.16 by David Burns 在 #4008。此升級帶來了更高的穩定性、新功能和錯誤修正,增強了 Nightwatch 的整體測試能力。
- 已更新
nightwatch-axe-verbose
依賴項以增強輔助功能測試功能,包括改進的 axe-core 整合和對進階配置的支援。by Priyansh Garg 在 #3993
完整變更日誌
v3.3.8
2024年1月10日變更
- 修正 Nightwatch 設定/組態檔案的類型。by @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/3876
- 更新依賴項。by @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/3985
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.3.7...v3.3.8
v3.3.7
2023年12月29日- 已新增 – 支援為自訂命令定義自訂回傳函式 fe9a01
v3.3.5
2023年12月14日變更
- 已修正 在 Node v20+ 中,測試執行後處理程序會停滯 4 分鐘。by @garg3133 在 #3976
- 已修正 #3639 waitFor 命令不會針對過時元素重試。by @garg3133 在 #3978
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.3.4...v3.3.5
v3.3.4
2023年12月11日v3.3.3
2023年12月7日變更
- 新增對 browserstack turboscale url 的檢查 by @nikhlagrwl 在 https://github.com/nightwatchjs/nightwatch/pull/3970
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.3.2...v3.3.3
v2.6.23
2023年12月7日變更
- 新增對 browserstack turboscale url 的支援 by @nikhlagrwl 在 https://github.com/nightwatchjs/nightwatch/pull/3969
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v2.6.22...v2.6.23
v3.3.2
2023年11月16日變更
- 在任何 selenium 主機上啟用平行處理 by @gravityvi 在 https://github.com/nightwatchjs/nightwatch/pull/3956
- 改進了透過外掛程式定義自訂報告器的支援
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.3.1...v3.3.2
v3.3.0
2023年11月7日變更
修復
- 更新 waitForElementVisible.js 的 abortOnFailure 描述 by @gravityvi 在 https://github.com/nightwatchjs/nightwatch/pull/3934
- 移除 worker threads 數量的上限 by @gravityvi 在 https://github.com/nightwatchjs/nightwatch/pull/3930
- 移除 postInstall 步驟 by @AutomatedTester 在 https://github.com/nightwatchjs/nightwatch/pull/3953
- 在使用雲端服務時,為行動裝置啟用 worker threads by @gravityvi 在 https://github.com/nightwatchjs/nightwatch/pull/3954
依賴項
- 將 Selenium 更新至 4.14 by @AutomatedTester 在 https://github.com/nightwatchjs/nightwatch/pull/3944
- chore: 更新依賴項 by @AutomatedTester 在 https://github.com/nightwatchjs/nightwatch/pull/3943
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.2.1...v3.3.0
v3.2.1
2023年10月5日變更
- CVE 2023 43646 by @AutomatedTester 在 https://github.com/nightwatchjs/nightwatch/pull/3925
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.2.0...v3.2.1
v3.2.0
2023年9月27日變更
新功能
- 新增 wait until present 命令 by @gravityvi 在 https://github.com/nightwatchjs/nightwatch/pull/3897
- nightwatch hooks 的事件設定 by @harshit-bs 在 https://github.com/nightwatchjs/nightwatch/pull/3706
修復
- 為追蹤使用正確的設定參數 by @swrdfish 在 https://github.com/nightwatchjs/nightwatch/pull/3890
- 允許在類型宣告中使用
WebElement
作為可能的選擇器。by @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/3896 - 在子處理程序 worker 上執行 mocha by @gravityvi 在 https://github.com/nightwatchjs/nightwatch/pull/3904
- 將 GitHub Actions 新增到支援色彩的清單中 by @gravityvi 在 https://github.com/nightwatchjs/nightwatch/pull/3914
- 從 mocha cli 執行器測試中移除 color 參數 by @gravityvi 在 https://github.com/nightwatchjs/nightwatch/pull/3919
- 考慮從所需的功能中永遠比對 by @gravityvi 在 https://github.com/nightwatchjs/nightwatch/pull/3907 (#3431)
- 當從程式設計 API 呼叫時,將設定物件傳遞至全域 hooks by @swrdfish 在 https://github.com/nightwatchjs/nightwatch/pull/3850 (#3849)
依賴項更新
- 升級至 selenium 4.13 by @AutomatedTester 在 https://github.com/nightwatchjs/nightwatch/pull/3920
TypeScript 改進
- 將 utils 模組遷移至 TS。by @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/3869
- 在遷移至 TS 之前重構 utils 模組。by @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/3870
- 將 lib/http 檔案遷移至 TS。by @yashPratp983 在 https://github.com/nightwatchjs/nightwatch/pull/3886
建置改進
- 修正 eslint 規則 by @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/3891
- 變更 execute 命令的檔案名稱。by @garg3133 在 https://github.com/nightwatchjs/nightwatch/pull/3898
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v3.1.3...v3.2.0
v2.6.22
2023年9月27日變更
- v2 的生命週期事件 hooks 支援 by @harshit-bs 在 https://github.com/nightwatchjs/nightwatch/pull/3817
完整變更日誌: https://github.com/nightwatchjs/nightwatch/compare/v2.6.21...v2.6.22