Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codeceptjs/helper

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codeceptjs/helper

Base class for all CodeceptJS helpers

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
214K
increased by6.19%
Maintainers
2
Weekly downloads
 
Created

What is @codeceptjs/helper?

@codeceptjs/helper is a helper class for CodeceptJS, a popular end-to-end testing framework. This package provides various methods to interact with web applications, APIs, and mobile applications, making it easier to write and manage tests.

What are @codeceptjs/helper's main functionalities?

Web Interaction

This feature allows you to interact with web pages by navigating to URLs, filling out forms, clicking buttons, and verifying text on the page.

const { I } = inject();

I.amOnPage('https://example.com');
I.fillField('Username', 'user');
I.fillField('Password', 'password');
I.click('Login');
I.see('Welcome, user!');

API Testing

This feature allows you to send HTTP requests and validate the responses, making it useful for API testing.

const { I } = inject();

I.sendGetRequest('/api/users').then(response => {
  I.assertEqual(response.status, 200);
  I.assertEqual(response.data.length, 10);
});

Mobile Interaction

This feature allows you to interact with mobile applications, including installing apps, clicking buttons, and filling out forms.

const { I } = inject();

I.runOnAndroid({
  device: 'emulator-5554',
  app: 'path/to/app.apk'
}, () => {
  I.seeAppIsInstalled('com.example.app');
  I.click('Login');
  I.fillField('Username', 'user');
  I.fillField('Password', 'password');
  I.click('Submit');
  I.see('Welcome, user!');
});

Other packages similar to @codeceptjs/helper

Keywords

FAQs

Package last updated on 07 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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