Skip to content

Commit b241177

Browse files
implement service
1 parent 1add34e commit b241177

File tree

12 files changed

+12931
-30
lines changed

12 files changed

+12931
-30
lines changed

.github/workflows/audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222

2323
- name: Set Node.js 20.x
24-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2525
with:
2626
node-version: 20.x
2727

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@ on:
1010

1111
jobs:
1212
build:
13-
strategy:
14-
matrix:
15-
os: [macos-13, ubuntu-latest, windows-latest]
16-
runs-on: ${{ matrix.os }}
13+
runs-on: ubuntu-latest
1714
steps:
18-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1916

2017
- name: 💚 Use Node.js
21-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v4
2219
with:
2320
node-version: 20
2421

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ jobs:
3636
contents: write
3737
id-token: write
3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4040
with:
4141
ref: 'main'
4242
fetch-depth: 0
43-
- uses: actions/setup-node@v3
43+
- uses: actions/setup-node@v4
4444
with:
4545
node-version: 20
4646
- name: NPM Setup

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@ describe('my test suite', () => {
3838
})
3939
```
4040

41+
### Standalone
42+
43+
If you are using WebdriverIO as a standalone package you can use this service by integrating this service as following:
44+
45+
```ts
46+
import { remote } from 'webdriverio'
47+
import JSONWPService from '@wdio/jsonwp-service'
48+
49+
const browser = await remote({ ... })
50+
51+
const jsonwp = new JSONWPService()
52+
jsonwp.before(undefined, undefined, browser)
53+
54+
await browser.buttonUp()
4155
---
4256

4357
For more information on WebdriverIO see the [homepage](https://webdriver.io).

0 commit comments

Comments
 (0)