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

codeceptjs-shared

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeceptjs-shared

Shared Configurations and Helpers for CodeceptJS

  • 2.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.8K
increased by1.99%
Maintainers
1
Weekly downloads
 
Created
Source

Codeceptjs-Shared

Shared library for the CodeceptJS

npm License

Install

    yarn codeceptjs-shared -D

Master Configuration

Simply your existing configuration by Re-Using the Master Configuration.

    
    const master_config = require('codeceptjs-shared').cofing.master;
    

Follow the example in codecept.conf.js of CodeceptJs-Cucumber E2E Framework.

Shared Helpers

Webdriver Commands Helpers

scrollAndClick

Arguments: locator

Scroll to the locator and click

seeVisible

Arguments: locator

e.g. I.seeVisible(locator)

scrollDownToPixel

Arguments: locator, pixel

Scroll down to defined pixel within the locator, e.g. scroll infinite on page

scrollToElement

Arguments: locator

Scroll down to the element

Custom Methods with I

takeNap

Arguments: seconds [Optional] Default: 1 second

Waits for the number of seconds

grabCss

Arguments: string

returns the CSS representation of a locator string.

I.grabCss('.my-class'); returns following,


{
    css: '.my-class'
}

FAQs

Package last updated on 07 Oct 2019

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