Gathering detailed insights and metrics for expect-webdriverio
Gathering detailed insights and metrics for expect-webdriverio
Gathering detailed insights and metrics for expect-webdriverio
Gathering detailed insights and metrics for expect-webdriverio
klassijs-soft-assert
The Assertion Tool is designed to enhance your testing framework by allowing tests to continue running even when assertions fail. Instead of halting the test upon an assertion failure, it will capture the error and continue running the test suite.
my-rest-assured
[](https://github.com/webdriverio/expect-webdriverio/actions/workflows/test.yml)
npm install expect-webdriverio
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (99.01%)
JavaScript (0.99%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
78 Stars
1,605 Commits
57 Forks
9 Watchers
14 Branches
62 Contributors
Updated on Jul 10, 2025
Latest Version
5.4.0
Package Id
expect-webdriverio@5.4.0
Unpacked Size
106.30 kB
Size
20.57 kB
File Count
54
NPM Version
10.8.2
Node Version
20.19.3
Published on
Jul 10, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
WebdriverIO Assertion library inspired by expect
npm install expect
(Jasmine and Jest users should skip this step)npm install expect-webdriverio
NOTE: WebdriverIO v9.0.0
or higher is required!
If you run your tests through the WDIO testrunner no additional setup is needed. WebdriverIO initialises expect-webdriverio
and makes expect
available in the global scope. So you can use it directly in your tests:
1const $button = await $('button') 2await expect($button).toBeDisplayed()
See more Examples
If you embed WebdriverIO in a standalone script, make sure you import expect-webdriverio
before you use it anywhere.
1import { remote } from 'webdriverio' 2import { expect } from 'expect-webdriverio' 3 4;(async () => { 5 const browser = await remote({ 6 capabilities: { 7 browserName: 'chrome' 8 } 9 }) 10 11 await browser.url('https://webdriver.io') 12 13 const $button = await browser.$('button') 14 await expect($button).toBeDisplayed() 15 16 await browser.deleteSession() 17})().catch(console.error)
Please see API doc
Error messages are informative out of the box and contain:
$('form').$('input')
First of all, feel free to raise an issue with your suggestions or help with PR!
No vulnerabilities found.
Reason
30 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
Found 6/19 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
SAST tool is not run on all commits -- score normalized to 1
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More