New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

codeceptjs

Package Overview
Dependencies
Maintainers
1
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeceptjs - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

8

CHANGELOG.md

@@ -0,1 +1,5 @@

## 1.1.1
* [WebDriverIO] fixed `waitForInvisible` by @Kporal
## 1.1.0

@@ -16,6 +20,6 @@

We also introduced strict ESLint policies for our codebase. Thanks to **[@Galkin](https://github.com/galkin)** for that.
We also introduced strict ESLint policies for our codebase. Thanks to [@Galkin](https://github.com/galkin) for that.
* **[Puppeteer] Helper introduced**. [Learn how to run tests headlessly with Google Chrome's Puppeteer](http://codecept.io/puppeteer/).
* **[SeleniumWebdriver] Helper is deprecated**, it is recommended to use Protractor with config option `angular: false` instead.
* [SeleniumWebdriver] Helper is deprecated, it is recommended to use Protractor with config option `angular: false` instead.
* [WebDriverIO] nested iframe support in the within block by @reubenmiller. Example:

@@ -22,0 +26,0 @@

# Robust Chrome Testing with Puppeteer
Among all Selenium alternatives the most interesting emerging ones are tools developed around Google Chrome [DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/). And the most prominent one is [Puppeteer](https://github.com/GoogleChrome/puppeteer).
It operates over Google Chrome directly without requireing additional tools like ChromeDriver. So tests setup with Puppeteer can be started with npm install only. If want get faster and simpler to setup tests, Puppeteer would be your choice.
It operates over Google Chrome directly without requireing additional tools like ChromeDriver. So tests setup with Puppeteer can be started with npm install only. If you want get faster and simpler to setup tests, Puppeteer would be your choice.
**CodeceptJS uses Puppeteer to improve end to end testing experience. First: you don't need to learn syntax of new tool, as all drivers in CodeceptJS share the same API. Second: CodeceptJS can locate elements by XPath.**.
CodeceptJS uses Puppeteer to improve end to end testing experience.
1. No need to learn the syntax of a new tool, all drivers in CodeceptJS share the same API.
2. CodeceptJS can locate elements by XPath.
Take a look at a sample test:

@@ -27,5 +30,9 @@

```bash
npm install codeceptjs-puppeteer
npm install -g codeceptjs-puppeteer
```
Or see [alternative installation options](http://codecept.io/installation/)
If you already have CodeceptJS project, just install `puppeteer` package and enable it in config.
And a basic project initialized

@@ -38,6 +45,3 @@

You will be asked for a Helper to use, you should select Puppeteer and provide url of a website you are testing.
Setup process is explained on [QuickStart page](http://codecept.io/quickstart/).
(If you already have CodeceptJS project, just install `puppeteer` package and enable it in config)
## Configuring

@@ -113,2 +117,4 @@

```js
Feature('ToDo');
Scenario('create todo item', (I) => {

@@ -115,0 +121,0 @@ I.amOnPage('http://todomvc.com/examples/react/');

@@ -1567,3 +1567,3 @@ let webdriverio;

const aSec = sec || this.options.waitForTimeout;
return this.browser.waitUntil(async function () {
return this.browser.waitUntil(async () => {
const res = await this.browser.elements(withStrictLocator.call(this, locator));

@@ -1570,0 +1570,0 @@ if (!res.value || res.value.length === 0) return false;

{
"name": "codeceptjs",
"version": "1.1.0",
"version": "1.1.1",
"description": "Modern Era Acceptance Testing Framework for NodeJS",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc