All Versions
131
Latest Version
Avg Release Cycle
17 days
Latest Release
-

Changelog History
Page 4

  • v2.6.8 Changes

    • [WebDriver][Protractor][Playwright][Puppeteer][Nightmare] saveElementScreenshot method added to make screenshot of an element. By @suniljaiswal01
    • [Playwright][Puppeteer] Added type method to type a text using keyboard with an optional delay.
    • [WebDriver] Added optional delay argument to type method to slow down typing.
    • 0๏ธโƒฃ [Puppeteer] Fixed amOnPage freeze when getPageTimeout is 0"; set 30 sec as default timeout by @Vorobeyko.
    • ๐Ÿ›  Fixed printing step with null argument in custom helper by @sjana-aj. See #2494
    • ๐Ÿ›  Fix missing screenshot on failure when REST helper is in use #2513 by @PeterNgTr
    • ๐Ÿ‘Œ Improve error logging in the screenshotOnFail plugin #2512 by @pablopaul
  • v2.6.7 Changes

    • โž• Add REST helper into standardActingHelpers array #2474 by @PeterNgTr
    • โž• Add missing --invert option for run-workers command #2504 by @pablopaul
    • [WebDriver] Introduce forceRightClick method #2485 bylsuniljaiswal01
    • [Playwright] Fix setCookie method #2491 by @bmbarker90
    • โšก๏ธ [TypeScript] Update compilerOptions.target to es2017 #2483 by @shanplourde
    • ๐Ÿ”ง [Mocha] Honor reporter configuration #2465 by @trinhpham
  • v2.6.6 Changes

    June 19, 2020
    • ๐Ÿคก Puppeteer 4.0 support. Important: MockRequest helper won't work with Puppeter > 3.3
    • โž• Added xFeature and Feature.skip to skip all tests in a suite. By @Georgegriff
    • ๐Ÿ›  [Appium] Fixed #2428 Android native locator support by @idxn
    • ๐Ÿ›  [WebDriver] Fixed waitNumberOfVisibleElements to actually filter visible elements. By @ilangv
    • ๐Ÿ›  [Puppeteer] Fixed handling error which is not an Error object. Fixes cannot read property indexOf of undefined error. Fix #2436 by @Georgegriff
    • ๐Ÿ–จ [Puppeteer] Print error on page crash by @Georgegriff
  • v2.6.5 Changes

    May 13, 2020
    • โž• Added test.skipped event to run-workers, fixing allure reports with skipped tests in workers #2391. Fix #2387 by @koushikmohan1996
    • ๐Ÿ›  [Playwright] Fixed calling waitFor* methods with custom locators #2314. Fix #2389 by @Georgegriff
  • v2.6.4 Changes

    May 11, 2020
    • ๐Ÿ‘ [Playwright] Playwright 1.0 support by @Georgegriff.
  • v2.6.3 Changes

    May 05, 2020
    • ๐Ÿ”Œ [stepByStepReport plugin] Fixed when using plugin with BeforeSuite. Fixes #2337 by @mirao
    • โœ… [allure plugin] Fixed reporting of tests skipped by failure in before hook. Refer to #2349 & #2354. Fix by @koushikmohan1996
  • v2.6.2 Changes

    April 23, 2020
    • [WebDriver][Puppeteer] Added forceClick method to emulate click event instead of using native events.
    • โšก๏ธ [Playwright] Updated to 0.14
    • โšก๏ธ [Puppeteer] Updated to Puppeteer v3.0
    • ๐Ÿ›  [wdio] Fixed undefined output directory for wdio plugns. Fix By @PeterNgTr
    • [Playwright] Introduced handleDownloads method to download file. Please note, this method has slightly different API than the same one in Puppeteer.
    • ๐Ÿ”Œ [allure] Fixed undefined output directory for allure plugin on using custom runner. Fix by @charliepradeep
    • ๐Ÿ›  [WebDriver] Fixed waitForEnabled fix for webdriver 6. Fix by @dsharapkou
    • ๐Ÿ‘ท Workers: Fixed negative failure result if use scenario with the same names. Fix by @Vorobeyko
    • ๐Ÿ“š [MockRequest] Updated documentation to match new helper version
    • ๐Ÿ›  Fixed: skipped tests are not reported if a suite failed in before. Refer #2349 & #2354. Fix by @koushikmohan1996
  • v2.6.1 Changes

    April 05, 2020
    • ๐Ÿ”Œ [screenshotOnFail plugin] Fixed saving screenshot of active session.
    • ๐Ÿ”Œ [screenshotOnFail plugin] Fix issue #2301 when having the flag uniqueScreenshotNames=true results in undefined in screenshot file name by @PeterNgTr
    • 0๏ธโƒฃ [WebDriver] Fixed waitForElement not applying the optional second argument to override the default timeout in webdriverio 6. Fix by @Mooksc
    • โšก๏ธ [WebDriver] Updated waitUntil method which is used by all of the wait* functions. This updates the waitForElement by the same convention used to update waitForVisible and waitInUrl to be compatible with both WebDriverIO v5 & v6. See #2313 by @Mooksc
  • v2.6.0 Changes

    March 31, 2020
    • โšก๏ธ [Playwright] Updated to Playwright 0.12 by @Georgegriff.

    โฌ†๏ธ Upgrade playwright to 0.12:

    npm i playwright@^0.12 --save
    

    ๐Ÿš€ Notable changes:

    • Fixed opening two browsers on start
    • executeScript - passed function now accepts only one argument. Pass in objects or arrays if you need multtple arguments: js // Old style, does not work anymore: I.executeScript((x, y) => x + y, x, y); // New style, passing an object: I.executeScript(({x, y}) => x + y, {x, y});
    • click - automatically waits for element to become clickable (visible, not animated) and waits for navigation.
    • clickLink - deprecated
    • waitForClickable - deprecated
    • forceClick - added
    • Added support for custom locators. See #2277
    • Introduced device emulation:
      • globally via emulate config option
      • per session

    โšก๏ธ [WebDriver] Updated to webdriverio v6 by @PeterNgTr.

    ๐Ÿš€ Read release notes, then โฌ†๏ธ upgrade webdriverio to 6.0:

    npm i webdriverio@^6.0 --save
    

    ๐Ÿšš (webdriverio v5 support is deprecated and will be removed in CodeceptJS 3.0)

    ๐Ÿ‘ [WebDriver] Introduced Shadow DOM support by @gkushang

    I.click({ shadow: ['my-app', 'recipe-hello', 'button'] });
    
    • ๐Ÿ›  Fixed parallel execution of run-workers for Gherkin scenarios by @koushikmohan1996
    • ๐Ÿ“ฆ [MockRequest] Updated and moved to standalone package:
      • full support for record/replay mode for Puppeteer
      • added mockServer method to use flexible PollyJS API to define mocks
      • fixed stale browser screen in record mode.
    • ๐Ÿ”Œ [Playwright] Added support on for screenshotOnFail plugin by @amonkc
    • ๐Ÿ‘€ Gherkin improvement: setting different tags per examples. See #2208 by @acuper
    • โšก๏ธ [TestCafe] Updated click to take first visible element. Fixes #2226 by @theTainted
    • โšก๏ธ [Puppeteer][WebDriver] Updated waitForClickable method to check for element overlapping. See #2261 by @PiQx
    • ๐Ÿ‘ [Puppeteer] Dropped puppeteer-firefox support, as Puppeteer supports Firefox natively.
    • ๐Ÿ‘€ [REST] Rrespect Content-Type header. See #2262 by @pmarshall-legacy
    • ๐Ÿ‘€ [allure plugin] Fixes BeforeSuite failures in allure reports. See #2248 by @Georgegriff
    • ๐Ÿ‘€ [WebDriver][Puppeteer][Playwright] A screenshot of for an active session is saved in multi-session mode. See #2253 by @ChexWarrior
    • ๐Ÿ›  Fixed --profile option by @pablopaul. Profile value to be passed into run-multiple and run-workers:
    npx codecept run-workers 2 --profile firefox
    

    ๐Ÿ‘€ Value is available at process.env.profile (previously process.profile). See #2302. Fixes #1968 #1315

    __`Given`;
    I.amOnPage('/profile')
    
    __`When`;
    I.click('Logout');
    
    __`Then`;
    I.see('You are logged out');
    
  • v2.5.0 Changes

    February 18, 2020

    ๐Ÿ’ป > Playwright is an alternative to Puppeteer which works very similarly to it but adds cross-browser support with Firefox and Webkit. Until v1.0 Playwright API is not stable but we introduce it to CodeceptJS so you could try it.

    • ๐Ÿ‘€ [Puppeteer] Fixed basic auth support when running in multiple sessions. See #2178 by @ian-bartholomew
    • ๐Ÿ‘€ [Puppeteer] Fixed waitForText when there is no body element on page (redirect). See #2181 by @Vorobeyko
    • ๐Ÿ”Œ [Selenoid plugin] Fixed overriding current capabilities by adding deepMerge. Fixes #2183 by @koushikmohan1996
    • โž• Added types for Scenario.todo by @Vorobeyko
    • โž• Added types for Mocha by @Vorobeyko. Fixed typing conflicts with Jest
    • [FileSystem] Added methods by @nitschSB
      • waitForFile
      • seeFileContentsEqualReferenceFile
    • โž• Added --colors option to run and run-multiple so you force colored output in dockerized environment. See #2189 by @mirao
    • ๐Ÿ‘€ [WebDriver] Added type command to enter value without focusing on a field. See #2198 by @xMutaGenx
    • ๐Ÿ›  Fixed codeceptjs gt command to respect config pattern for tests. See #2200 and #2204 by @matheo