Skip to content

fix: access ShadowRoot via window.ShadowRoot#9046

Merged
christian-bromann merged 2 commits intowebdriverio:mainfrom
klipstein:master
Oct 19, 2022
Merged

fix: access ShadowRoot via window.ShadowRoot#9046
christian-bromann merged 2 commits intowebdriverio:mainfrom
klipstein:master

Conversation

@klipstein
Copy link
Contributor

Proposed changes

fixes an issue in browsers where ShadowRoot is not available globally (e.g. Edge 18). Error message is "ShadowRoot is not defined".

A similar issue was reported here vuejs/test-utils#293 and the fix was referencing ShadowRoot from window instead: https://github.com/vuejs/core/pull/2943/files

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

Reviewers: @webdriverio/project-committers

fixes an issue in browsers where ShadowRoot is not available globally (e.g. Edge 18). Error message is "ShadowRoot is not defined".

A similar issue was reported here vuejs/test-utils#293 and the fix was referencing ShadowRoot from window instead: https://github.com/vuejs/core/pull/2943/files
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 19, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: klipstein / name: Tobias von Klipstein (a4509d7)

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

Thanks! 👍

Mind raising the same PR for the v7 branch so I can release is to current stable?

@christian-bromann christian-bromann merged commit 410ea50 into webdriverio:main Oct 19, 2022
klipstein added a commit to klipstein/webdriverio that referenced this pull request Oct 19, 2022
* fix: access ShadowRoot via window.ShadowRoot

fixes an issue in browsers where ShadowRoot is not available globally (e.g. Edge 18). Error message is "ShadowRoot is not defined".

A similar issue was reported here vuejs/test-utils#293 and the fix was referencing ShadowRoot from window instead: https://github.com/vuejs/core/pull/2943/files

* Revert accidentally changed return value
@klipstein
Copy link
Contributor Author

@christian-bromann thanks for merging. Here is the pull for the v7 branch: #9050

christian-bromann pushed a commit that referenced this pull request Oct 19, 2022
* fix: access ShadowRoot via window.ShadowRoot

fixes an issue in browsers where ShadowRoot is not available globally (e.g. Edge 18). Error message is "ShadowRoot is not defined".

A similar issue was reported here vuejs/test-utils#293 and the fix was referencing ShadowRoot from window instead: https://github.com/vuejs/core/pull/2943/files

* Revert accidentally changed return value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants