webdriverio

Next-gen browser and mobile automation test framework for Node.js

webdriverio downloads webdriverio version webdriverio license

webdriverio類似パッケージ:
npmのダウンロードトレンド
3 年
🌟 webdriverioのREADME.mdにリアルタイム使用チャートを表示するには、以下のコードをコピーしてください。
## Usage Trend
[![Usage Trend of webdriverio](https://npm-compare.com/img/npm-trend/THREE_YEARS/webdriverio.png)](https://npm-compare.com/webdriverio#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 webdriverioのREADME.mdにGitHub Starsトレンドチャートを表示するには、以下のコードをコピーしてください。
## GitHub Stars Trend
[![GitHub Stars Trend of webdriverio](https://npm-compare.com/img/github-trend/webdriverio.png)](https://npm-compare.com/webdriverio)
統計詳細
パッケージ
ダウンロード数
Stars
サイズ
Issues
公開日時
ライセンス
webdriverio2,044,6169,6751.38 MB2702日前MIT
webdriverio のREADME

WebdriverIO

Next-gen browser and mobile automation test framework for Node.js

This package provides an easy-to-manage API and a lot of syntactical sugar on top of the WebDriver specification. You can use WebdriverIO as a standalone package or via a test runner using @wdio/cli. WebdriverIO allows you to run tests locally using the WebDriver as well as remote user agents using cloud providers like Sauce Labs.

Installation

You can install WebdriverIO via NPM:

npm install webdriverio

Usage

WebdriverIO by default uses Puppeteer to automate a browser like Chrome, Firefox or Chromium Edge. So if you have Chrome installed, the following script should start a browser for you and get the title of the page:

import { remote } from 'webdriverio'

const browser = await remote({
    capabilities: { browserName: 'chrome' }
})

await browser.navigateTo('https://www.google.com/ncr')

const searchInput = await browser.$('#lst-ib')
await searchInput.setValue('WebdriverIO')

const searchBtn = await browser.$('input[value="Google Search"]')
await searchBtn.click()

console.log(await browser.getTitle()) // outputs "WebdriverIO - Google Search"

await browser.deleteSession()

See the raw protocol example using the webdriver package to get a glance at the differences.

For more information on options, multiremote usage or integration into cloud services please check out the docs.


Package Sponsors:

BrowserStack