CodeceptJS v1.1.5 Release Notes
-
- [Puppeteer] Rerun steps failed due to "Cannot find context with specified id" Error.
- โ Added syntax to retry a single step:
// retry action once on failure I.retry().see('Hello'); // retry action 3 times on failure I.retry(3).see('Hello'); // retry action 3 times waiting for 0.1 second before next try I.retry({ retries: 3, minTimeout: 100 }).see('Hello'); // retry action 3 times waiting no more than 3 seconds for last retry I.retry({ retries: 3, maxTimeout: 3000 }).see('Hello'); // retry 2 times if error with message 'Node not visible' happens I.retry({ retries: 2, when: err => err.message === 'Node not visible' }).seeElement('#user');
- ๐
Scenario().injectDependencies
added to dynamically add objects into DI container by @Apshenkin. See Dependency Injection section in PageObjects. - ๐ Fixed using async/await functions inside
within
- ๐ [WebDriverIO][Protractor][Puppeteer][Nightmare]
waitUntilExists
deprecated in favor ofwaitForElement
- ๐ [WebDriverIO][Protractor]
waitForStalenessOf
deprecated in favor ofwaitForDetached
- [WebDriverIO][Protractor][Puppeteer][Nightmare]
waitForDetached
added - ๐ [Nightmare] Added
I.seeNumberOfElements()
by @pmoncadaisla - [Nightmare] Load blank page when starting nightmare so that the .evaluate function will work if _failed/saveScreenshot is triggered by @reubenmiller
- ๐ Fixed using plain arrays for data driven tests by @reubenmiller
- 0๏ธโฃ [Puppeteer] Use default tab instead of opening a new tab when starting the browser by @reubenmiller
- [Puppeteer] Added
grabNumberOfTabs
function by @reubenmiller - [Puppeteer] Add ability to set user-agent by @abidhahmed
- ๐ป [Puppeteer] Add keepCookies and keepBrowserState @abidhahmed
- [Puppeteer] Clear value attribute instead of innerhtml for TEXTAREA by @reubenmiller
- ๐ฐ [REST] fixed sending string payload by @michaltrunek
- ๐ Fixed unhandled rejection in async/await tests by @APshenkin