Skip to content

Commit

Permalink
chore(devtools):
Browse files Browse the repository at this point in the history
- Update website for AutomationProtocols.md, Config
and Options.ts with a deprecation warning

Contributes to: #11860

Signed-off-by: Georgios Romanas gromanas@gmail.com
  • Loading branch information
gromanas committed Jan 24, 2024
1 parent a6615d3 commit 7230bbf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/wdio-types/src/Options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@ export interface WebdriverIO extends Omit<WebDriver, 'capabilities'>, Pick<Hooks
*/
capabilities: RemoteCapability
/**
* :::caution Deprecation Warning
*
* Please note that [`devtools`](https://www.npmjs.com/package/devtools) protocol would be deprecated in future release.
* Please use and would [`webdriver`](https://www.npmjs.com/package/webdriver) protocol instead.
*
* :::
* Define the protocol you want to use for your browser automation.
* Currently only [`webdriver`](https://www.npmjs.com/package/webdriver) and
* [`devtools`](https://www.npmjs.com/package/devtools) are supported,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/AutomationProtocols.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ There are also plenty of services that allow you to run your automation test in

:::warning Deprecation

WebdriverIO is be deprecating the use of Chrome Devtools as automation protocol through a WebDriver like interface. Instead you can use the [`getPuppeteer`](/docs/api/browser/getPuppeteer) command to get ahold of a Puppeteer instance for Chrome Devtools introspection and automation.
WebdriverIO is deprecating the use of Chrome Devtools as automation protocol through a WebDriver like interface. Instead, you can use the [`getPuppeteer`](/docs/api/browser/getPuppeteer) command to get ahold of a Puppeteer instance for Chrome Devtools introspection and automation.

:::

Expand Down
6 changes: 6 additions & 0 deletions website/docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ The following options (including the ones listed above) can be used with Webdriv

### automationProtocol

:::warning Deprecation

WebdriverIO is deprecating the use of Chrome Devtools as automation protocol through a WebDriver like interface. Instead, you should use [`webdriver`](https://www.npmjs.com/package/webdriver) .

:::

Define the protocol you want to use for your browser automation. Currently only [`webdriver`](https://www.npmjs.com/package/webdriver) and [`devtools`](https://www.npmjs.com/package/devtools) are supported, as these are the main browser automation technologies available.

If you want to automate the browser using `devtools`, make sure you have the NPM package installed (`$ npm install --save-dev devtools`).
Expand Down

0 comments on commit 7230bbf

Please sign in to comment.