Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webdriver can't return shadowRoot (as SearchContext) in Chrome96+ #247

Open
ditman opened this issue Mar 11, 2022 · 1 comment
Open

Webdriver can't return shadowRoot (as SearchContext) in Chrome96+ #247

ditman opened this issue Mar 11, 2022 · 1 comment

Comments

@ditman
Copy link

ditman commented Mar 11, 2022

We're attempting to run some tests in Chrome96, and this bit of the code is failing:

https://github.com/flutter/flutter/blob/5e0cc4cba416866225821c0eaba581ac7c0a712c/examples/hello_world/test_driver/smoke_web_engine_test.dart#L46-L50

With the following error (complete build):

   type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'SearchContext?' in type cast
   test_driver/smoke_web_engine_test.dart 50:9       main.<fn>.<fn>
   ===== asynchronous gap ===========================
   package:test_api/src/backend/declarer.dart 215:9  Declarer.test.<fn>.<fn>
   ===== asynchronous gap ===========================
   package:test_api/src/backend/declarer.dart 213:7  Declarer.test.<fn>
   ===== asynchronous gap ===========================
   package:test_api/src/backend/invoker.dart 257:7   Invoker._waitForOutstandingCallbacks.<fn>

It seems that there has been a change in how Chrome 96+ retrieves the shadowRoot of an element.

Looking at the equivalent fix in Selenium, it seems that some of the changes need to happen in package:webdriver?


Copied from flutter/flutter#99775

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

No branches or pull requests

2 participants
@ditman and others