Skip to content

(@wdio/utils): don't setup a driver nor browser if using devtools protocol#11130

Merged
christian-bromann merged 2 commits intomainfrom
cb-devtools-browser-setup
Sep 11, 2023
Merged

(@wdio/utils): don't setup a driver nor browser if using devtools protocol#11130
christian-bromann merged 2 commits intomainfrom
cb-devtools-browser-setup

Conversation

@christian-bromann
Copy link
Member

Proposed changes

When a user defines devtools as automation protocol we should not set up any drivers.

fixes #11129

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Further comments

n/a

Reviewers: @webdriverio/project-committers

))
!getDriverOptions(cap).binary &&
// - user is not defining "devtools" as automation protocol
(options as Options.WebdriverIO).automationProtocol !== 'devtools'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the setup*() methods and this one receive an options: Options.WebdriverIO so you don't have to do this casting?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in hindsight, yes .. good catch, will push a fix.

@erwinheitzman erwinheitzman added the PR: Bug Fix 🐛 PRs that contain bug fixes label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Bug Fix 🐛 PRs that contain bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[💡 Feature]: disable automatic driver setup when using devtools automation protocol

3 participants