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

cypress-bobril

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-bobril

Cypress commands for searching bobril components.

  • 4.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

cypress-bobril

Cypress commands for searching bobril components.

Adding to project

Add following lines to your commands.ts:

/// <reference types="cypress-bobril" />

import "cypress-bobril/commands";

and change tsconfig.json:

{
  "compilerOptions": {
     ...
    "types": ["cypress-bobril"],
    ...
  },
  ...
}

How to use

cypress-bobril is command plugin, so it adds following commands interacting with BBSeeker (tool for exploring virtual-dom and its data):

  • cy.injectBBSeeker - Injects BBSeeker to testing window - injection is mandatory to run all the other commands.
  • cy.visitWithBBSeeker - Visits address using cy.visit and injects BBSeeker to window using cy.injectBBSeeker.
  • cy.findElements - Performs recursive search of a page virtual DOM starting from bobril root objects. All matching objects are returned as instances of HTMLElement
  • cy.getData - Returns selected bobril data node value.
  • cy.getProperty - Returns selected bobril property value.

How to develope

Prerequisites: installed bbcore.

To develope and debug commands just run testing bobril page within sampleApp by command:

bb

Then in the root directory install dependencies and run Cypress:

yarn
npx cypress open

Keywords

FAQs

Package last updated on 02 Dec 2020

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