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

expect-webdriverio

Package Overview
Dependencies
Maintainers
0
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expect-webdriverio

WebdriverIO Assertion Library

  • 5.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
817K
increased by12.57%
Maintainers
0
Weekly downloads
 
Created

What is expect-webdriverio?

The expect-webdriverio package is an assertion library designed to work with WebdriverIO, providing a set of matchers to make it easier to write assertions for WebdriverIO tests.

What are expect-webdriverio's main functionalities?

Element Matchers

This feature allows you to assert the state of elements in the DOM. For example, you can check if an element is displayed.

expect($('#element')).toBeDisplayed();

Attribute Matchers

This feature allows you to assert the attributes of elements. For example, you can check if an element has a specific class.

expect($('#element')).toHaveAttribute('class', 'my-class');

Text Matchers

This feature allows you to assert the text content of elements. For example, you can check if an element contains specific text.

expect($('#element')).toHaveText('Hello World');

Value Matchers

This feature allows you to assert the value of input elements. For example, you can check if an input field has a specific value.

expect($('#input')).toHaveValue('input value');

Condition Matchers

This feature allows you to assert the state of the browser. For example, you can check if the browser's URL matches a specific value.

expect(browser).toHaveUrl('https://example.com');

Other packages similar to expect-webdriverio

Keywords

FAQs

Package last updated on 22 Nov 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