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
my-rest-assured
[![Test](https://github.com/webdriverio/expect-webdriverio/actions/workflows/test.yml/badge.svg)](https://github.com/webdriverio/expect-webdriverio/actions/workflows/test.yml)
@wdio/globals
A helper utility for importing global variables directly
@wdio/sync
A WebdriverIO plugin. Helper module to run WebdriverIO commands synchronously
@wdio/types
Utility package providing type information for a variety of WebdriverIO interfaces
npm install expect-webdriverio
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
76 Stars
1,493 Commits
52 Forks
10 Watching
7 Branches
53 Contributors
Updated on 25 Nov 2024
TypeScript (98.87%)
JavaScript (1.12%)
Shell (0.01%)
Cumulative downloads
Total Downloads
Last day
6.1%
132,343
Compared to previous day
Last week
10.4%
777,266
Compared to previous week
Last month
9.1%
3,071,922
Compared to previous month
Last year
34.7%
30,036,459
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
no dangerous workflow patterns detected
Reason
30 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 1/7 approved changesets -- score normalized to 1
Reason
dependency not pinned by hash detected -- 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
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
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